Closed firsthubgit closed 6 years ago
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'baihejia-android'.
Could not resolve all files for configuration ':classpath'. Could not find com.android.tools.build:gradle:3.0.0. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar Required by: project : Could not find com.android.tools.build:gradle:3.0.0. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0/gradle-3.0.0.jar Required by: project : > com.antfortune.freeline:gradle:0.8.8
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
3.0.0 需要在 repository 中加入 google 源
在项目的gradle.properties文件中加入 android.enableAapt2=false,就可以解决这个问题
这个也碰过,加google(),但是要VPN。要不第一次下不来。。。
可以初始化了,加google() 翻墙下就行
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'baihejia-android'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org