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

后端 未结 7 578

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 18:35

    This worked for me:

    Deactivate Configuration On Demand

    In gradle.properties:

    org.gradle.configureondemand=false
    

    Then stop the daemon in a terminal window:

    gradlew.bat --stop
    

    Now everything works again.

    Versions used:

    • Android Studio 3.0 Canary 5
    • gradle: gradle-4.1-milestone-1
    • android gradle plugin: com.android.tools.build:gradle:3.0.0-alpha5

    UPDATE
    After upgrading to Android Studio 3.0 Beta 2 I can reactivate Configuration on Demand and everything works fine.

提交回复
热议问题