Android插件1.3错误

标签 android android-studio android-gradle-plugin build.gradle android-sdk-tools

这是我在将我的 SDK 和构建工具更新到 Android M

时遇到的错误
Android Build Tools
Found incompatible Build Tools and Android plugin versions:
* Module 'app' is using Android plugin 1.2.3 and Build Tools 23.0.0 rc1
Please use Android plugin 1.3 or newer, or an older Build Tools version.
Otherwise the project won't build.

当类路径'com.android.tools.build:gradle:1.2.3' 更改为 1.3

我又遇到了一个错误。

Error:Could not find com.android.tools.build:gradle:1.3.
Searched in the following locations:
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/1.3/gradle-1.3.pom
    file:/Applications/Android Studio.app/Contents/gradle/m2repository/com/android/tools/build/gradle/1.3/gradle-1.3.jar
    https://jcenter.bintray.com/com/android/tools/build/gradle/1.3/gradle-1.3.pom
    https://jcenter.bintray.com/com/android/tools/build/gradle/1.3/gradle-1.3.jar

我现在该怎么办?

最佳答案

因为当时android gradle plugin 1.3还没有发布。它处于测试阶段。

所以,尝试将版本设置为 1.3.0-beta1

你可以看到所有android等级插件版本列表here .专业提示:一直向下滚动到底部,以便更轻松地查看最新版本。 :)

更新

Android gradle 插件 1.3 终于发布了:https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.0/

关于Android插件1.3错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30536545/

相关文章:

android - Android Studio 2.3 中的错误 com.android.dx.command.Main

Android:如何延迟捕获相机拍摄的特定帧?

android - 图库 Activity imageLoader 出错

Android Talkback 在 TextInputLayout 上的错误通知

android-studio - java.lang.IllegalArgumentException : java. lang.ClassCastException 在 Android Studio 中迁移到 androidx 后

java - TypeConverter() 在 Android 中的 Room 的 TypeConverter 错误中具有私有(private)访问权限

java - 自定义百分比比例

android - Gradle 自定义存储库和依赖解析

android - 在同一个 Activity 中的两个 GridView 之间切换

android - 找不到名称为 'debug' 的 KotlinJvmAndroidCompilation