When I type gradle clean build, it occurrs this.
[root@master android_rpc]# gradle clean build --scan
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring root project ‘android_rpc’.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve com.android.tools.build:gradle:3.1.0.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.1.0.
Could not get resource ‘https://maven.google.com/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom’.
Could not GET ‘https://maven.google.com/com/android/tools/build/gradle/3.1.0/gradle-3.1.0.pom’.