Update Gradle version on Android Studio 2.0

后端 未结 4 678
情话喂你
情话喂你 2020-12-16 23:45

I have updated my Android Studio last night to version 2.0 Then i cannot run app anymore. My Android Studio said that

"This version of Android Studio is incompat

相关标签:
4条回答
  • 2020-12-17 00:05

    It's always recommended to use stable version of Android Gradle Plugin. So, update your project build.gradle from classpath 'com.android.tools.build:gradle:2.1.0-alpha1' to stable version follows.Then try clean and build let me know aftermath.

    classpath 'com.android.tools.build:gradle:2.0.0'
    

    And see Doug Stevenson's advice.

    0 讨论(0)
  • 2020-12-17 00:18

    In my case a "Build > Clean Project" eliminate the issue.

    0 讨论(0)
  • 2020-12-17 00:23

    The correct gradle build tools version for Android Studio 2.0 is version 2.0.0:

    classpath 'com.android.tools.build:gradle:2.0.0'
    
    0 讨论(0)
  • 2020-12-17 00:26

    Just upgraded to Android Studio 2.0 stable release and ran into the same issue. Followed all fixes on this questions as well as this thread but didn't work for me.

    What worked for me was upgrading gradle to latest 2.12 version as of today, as well as upgrading the gradle plugin to 2.0.0. Gradle 2.11 didn't work for me.

    Also make sure to delete "build" folders.

    0 讨论(0)
提交回复
热议问题