Unsupported method: AndroidProject.getPluginGeneration() while running project

后端 未结 7 1158
青春惊慌失措
青春惊慌失措 2020-12-07 15:20

I\'m trying to run my Project with Android Studio 2.2 but I get this error

Unsupported method: AndroidProject.getPluginGeneration().
The version of Gradle yo         


        
相关标签:
7条回答
  • 2020-12-07 16:09

    Just upgrade the Gradle plugin version to the last version :

    dependencies {
            classpath 'com.android.tools.build:gradle:3.5.1'
    
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    

    and be sure your Gradle is the last v too :

    #Sun Nov 03 16:47:32 IRST 2019
    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
    

    NOTE: use google in repository too

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