Configuration on demand is not supported by the current version of the Android Gradle plugin

后端 未结 12 1275
南旧
南旧 2020-11-29 15:10

After upgrading to Android Studio 3.1.2 I am getting the following error:

Configuration on demand is not supported by the current version of the Andro

相关标签:
12条回答
  • 2020-11-29 15:43

    From Android Studio uncheck the configure on demand:

    Follow below steps:

    1. For Mac go to the Preferences > Build, Execution, Deployment > Compiler and uncheck the configure on demand.

    2. For Linux/Windows go to the File > Settings > Build, Execution, Deployment > Compiler and uncheck the configure on demand.

    Now sync your project

    Happy coding! :)

    0 讨论(0)
  • 2020-11-29 15:47

    Just you need to update Android Gradle Plugin update to 3.2.0-alpha16.

    Android Gradle Plugin update 3.2.0-alpha16 instead of 3.1.2

    0 讨论(0)
  • 2020-11-29 15:47

    gradle/wrapper/gradle-wrapper.properties

    Update the gradle version

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

    Build > Rebuild Project

    Good Luck

    Source

    0 讨论(0)
  • 2020-11-29 15:51

    Other 'solution' is use the suggestion by Android Studio. Plugin Android Gradle 3.1.3 and Gradle version 4.4.

    0 讨论(0)
  • 2020-11-29 15:53

    I get same error after update to AS 3.1.2. You can still use Gradle version 4.6 but downgrade Android gradle plugin to 3.1.1

    EDIT: just invalidate cache and restart

    0 讨论(0)
  • 2020-11-29 15:53

    Go to File->Build,Excution,Deployment->Compiler and Uncheck Configure on Demand

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