我有問題,編譯新的gradle產出如下圖所示的位置:錯誤:無法找到com.android.tools.build:gradle:3.0.0-beta2
Error:Could not find com.android.tools.build:gradle:3.0.0-beta2. Searched in the following locations: file:/C:/Program Files/Android/android-studio-preview/gradle/m2repository/com/android/tools/build/gradle/3.0.0-beta2/gradle-3.0.0-beta2.pom file:/C:/Program Files/Android/android-studio-preview/gradle/m2repository/com/android/tools/build/gradle/3.0.0-beta2/gradle-3.0.0-beta2.jar https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-beta2/gradle-3.0.0-beta2.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.0-beta2/gradle-3.0.0-beta2.jar Required by: project : Open File
這是我的gradle產出:
buildscript {
ext.kotlin_version = '1.1.4-2'
repositories {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:3.0.0-beta2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
可能重複[android studio 3.0 Canary 1:項目刷新失敗](https://stackoverflow.com/questions/44039762/android-studio-3-0-canary-1-project-refresh-failed) – DeKaNszn
https:/ /developer.android.com/studio/preview/features/new-android-plugin-migration.html – DeKaNszn
可能的d [無法在圈子ci中找到com.android.tools.build:gradle:3.0.0-alpha1](https://stackoverflow.com/questions/44071080/could-not-find-com-android-tools- –