1. Gradle build failed
1. First look at the version android studio
2.gradle version
3. The default path of gradle
Gradle official website: http://services.gradle.org/distributions/
That's right, let's build two steps
,
2. Report Failed to resolve: com.android.support:appcompat-v7:27.0.3 this error, can not find the corresponding version of the SDK
1. First look at your own SDK version
The sdk is 27, the sdk tool is 26, the Android SDK below can also be seen here
2. Change build.gradle according to this sdk version
3. Rebuild it