升级到 Android Studio 3.1.2 后,我收到以下错误:
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
来自 gradle.properties。 Preferences
> Build, Execution, Deployment
> Compiler
并取消选中按需配置。File
> Settings
> Build, Execution, Deployment
> Compiler
并取消选中按需配置。 gradle.properties
文件gradle.properties
${HOME}/.gradle/gradle.properties
关于android - 当前版本的 Android Gradle 插件不支持按需配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49990933/
欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://jike.in/) | Powered by Discuz! X3.4 |