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

Posted qd-海军

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Configuration on demand is not supported by the current version of the Android Gradle plugin since y相关的知识,希望对你有一定的参考价值。

androidStudio打开cocos3.17.2Lua项目时,出现了

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.
Open File                 错误

由于使用你正在使用 Gradle 版本4.6或以上,当前版本的Android的 Gradle 插件不支持按需配置。

建议:通过在你的 gradle.properties 文件中设置 org.gradle.configureondemand=false 禁用按需配置,或者使用一个低于4.6版本的 Gradle。

解决办法

取消掉按需分配

找到 File/Settings/Build, Execution, Deployment 里面的 Compiler,将右面的 Configure on demand 取消勾选。

 

 重新编译通过了

 

以上是关于Configuration on demand is not supported by the current version of the Android Gradle plugin since y的主要内容,如果未能解决你的问题,请参考以下文章

iOS On Demand 资源:如何调试

idiom - Initialization-on-demand holder 延迟加载的单例模式

如何将私有链接用于 Synapse 工作区 SQL On-Demand?

iOS9 中的On-Demand Resources,编辑中。。。

如何下载 On Demand 框架/SDK?

从 SQL On-Demand 端点运行查询时出现 SSMS 错误