Android plugin 1.3 error

﹥>﹥吖頭↗ 提交于 2019-12-02 22:25:41

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

So, try setting the version to 1.3.0-beta1.

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. :)

Update

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

ben75

Update

version 1.4.0-beta1 is now available


Version 1.3.0 of the android gradle plugin is not released yet.

The current latest version (to use with Android-Studio 1.3-preview) is 1.3.0-beta1.

Put this in your root build.gradle

buildscript {
     ...
     dependencies {
         classpath 'com.android.tools.build:gradle:1.3.0-beta1'
         ...
     }
}

You can find the latest published version of the plugin on this page: https://jcenter.bintray.com/com/android/tools/build/gradle/

Note that you may also need to update your build tools :

android {
    buildToolsVersion "23.0.0 rc1"
    ...
}

This version of the build tools is available with the sdk manager under section "Tools (preview channel)"

As Android Studio was just officially updated to 1.3 (Gradle as well).

changing gradle version from 1.2.3 to 1.3.+ in build.gradle file worked for me. It should now look like this:

    dependencies {
    classpath 'com.android.tools.build:gradle:1.3.+'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

Unfortunately, the previous answers above didn't work in my case. Gradle simply freezes while resolving dependencies (I can't find 1.3.0-beta1 in the repo either for manual download):

I had to downgrade the buildToolsVersion from "23.0.0 rc1" to "22.0.1" in the build.gradle (Module: app) and it worked fine afterwards.

apply plugin: 'com.android.application'

android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
...
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!