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
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 取消勾选。
重新编译通过了