升级到Android Studio 3.1.2,Gradle插件报错:
Configuration on demand is not supported by the current version of the Android Gradle plugin since you are using Gradle version 4.6 or above. Suggestion: disable configuration on demand by setting org.gradle.configureondemand=false in your gradle.properties file or use a Gradle version less than 4.6.
按提示配置org.gradle.configureondemand=false并没有起作用。
禁用on demand需要两步:
- 在gradle.properties删除org.gradle.configureondemand
- Windows:File > Settings > Build, Execution, Deployment > Compiler,去掉configure on demand的勾选