简体   繁体   中英

Android Studio Error : Unsupported version of the Android Gradle plug-in (0.9.2)

I am working on an Android Project for few months and I recently upgraded android studio form 0.5.2 to 0.8.0. Now I am unable to open my project via new Android Studio. I am getting this error whenever I try to open the project and unable to open it.

 The project is using an unsupported version of the Android Gradle plug-in (0.9.2)
 Consult IDE log for more details (Help | Show Log)

I don't know much about Gradle, Ant, Maven or any built script. Also, there is no option to see the the logs from the Start screen of android studio.

Since your project is not being opened by the IDE, try to update Gradle plugin version manually. Locate build.gradle file in your project's root directory and change the version in buildscript block so it would look like this:

buildscript {
    ...
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.+'
    }
}

Save the file and try to re-open your project.

In Android Studio 0.8.7, you can change to

buildscript {
    ...
    dependencies {
        classpath 'com.android.tools.build:gradle:0.12.2'
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM