Failed to apply plugin Android Gradle plugin 3.0.0-alpha5 must not be applied to project

后端 未结 7 580

Using the latest Android Studio 3.0 Canary 5

Here\'s the error:

Error:(1, 1) A problem occurred evaluating project \':app\'.

Failed to app

相关标签:
7条回答
  • 2021-02-03 19:01

    I had the same issue, I closed Android Studio and opened again, I noticed that it automatically applied these changes to the following files and everything worked fine:

    build.gradle: changed the class path of Gradle from:

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

    to

    dependencies {
            classpath 'com.android.tools.build:gradle:3.0.0-alpha5'
        }
    

    gradle-wrapper.properties: from

    distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
    

    to

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
    
    0 讨论(0)
提交回复
热议问题