Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android plugin 1.3 error

Tags:

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.

when classpath 'com.android.tools.build:gradle:1.2.3' changed to 1.3

I got another error.

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

What should I do now ?

like image 686
N J Avatar asked May 29 '15 18:05

N J


People also ask

How do I update my Android plugins?

Updating the IDE and plugin Android Studio should have prompted you to update to 3.0, if not then go to 'Check for updates' in the menu to do so. Once you launch your project in 3.0 for the first time, you will be told there is a new version of the plugin to update to.

What is a plugin in Android?

The Android Gradle plugin (AGP) is the official build system for Android applications. It includes support for compiling many different types of sources and linking them together into an application that you can run on a physical Android device or an emulator.

How do I disable plugins on Android?

Step 3: To disable or uninstall a plugin this time go to the Installed tab. And here you can find the all installed plugins in your android studio. Just click on that plugin which one you want to disable or uninstall. Then select the Disable or Uninstall button at the right as shown in the below image.


2 Answers

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/

like image 128
Aaron He Avatar answered Oct 19 '22 09:10

Aaron He


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)"

like image 22
ben75 Avatar answered Oct 19 '22 09:10

ben75