记录一个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.
解决办法:
No need to downgrade!
Disabling configure on demand requires two steps:
-
Remove
org.gradle.configureondemandfrom gradle.properties. -
In Android Studio,
For Mac go to thePreferences>Build, Execution, Deployment>Compilerand uncheck the configure on demand.
For Linux/Windows go to theFile>Settings>Build, Execution, Deployment>Compilerand uncheck the configure on demand.
Note, there are 2 gradle.properties files
- In your project
gradle.properties ${HOME}/.gradle/gradle.properties
本文介绍了解决Gradle版本4.6及以上不支持配置按需加载的问题方法。无需降级Gradle版本,只需两步即可在Android Studio中禁用此功能。
4250

被折叠的 条评论
为什么被折叠?



