升级老的Android项目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后并没有什么卵用。。。。

从网上发现了以下设置步骤可以关闭`org.gradle.configureondemand:

  1. 在gradle.properties删除org.gradle.configureondemand设置

  2. Windows:File > Settings > Build, Execution, Deployment > Compiler,去掉configure on demand的勾选

    Mac:Android Studio>Prefrence> Build, Execution, Deployment > Compiler,去掉configure on demand的勾选


文章作者: Hienao
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Hienao !
评论
  目录