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

后端 未结 12 1345
南旧
南旧 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:37

    No need to downgrade!

    Disabling configure on demand requires two steps:

    1. Remove org.gradle.configureondemand from gradle.properties.

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

    Note, there are 2 gradle.properties files

    1. In your project gradle.properties
    2. ${HOME}/.gradle/gradle.properties

提交回复
热议问题