Android插件1.3错误 [英] Android plugin 1.3 error

查看:29
本文介绍了Android插件1.3错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我将 SDK 和构建工具更新为 Android M

This is error I got when updated my SDK and Build tool to 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 还没有发布.它处于测试阶段.

The was because at that time android gradle plugin 1.3 had not been released yet. It was in beta.

因此,尝试将版本设置为 1.3.0-beta1.

So, try setting the version to 1.3.0-beta1.

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

You can see the list of all the android grade plugin versions here. Pro tip: scroll all the way down to the bottom so it's easier to see the latest version. :)

更新

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

Android gradle plugin 1.3 is finally released: https://jcenter.bintray.com/com/android/tools/build/gradle/1.3.0/

这篇关于Android插件1.3错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆