当前位置: 首页 > 知识库问答 >
问题:

当前版本的Android Gradle[复制]不支持按需配置

慕容念
2023-03-14

这是我设定的:

File > Project Structure > Project > Project SDK = 10 (java version "10.0.1")
File > Project Structure > Project > Project Language level = SDK default (10 - Local variable type inference)
File > Project Structure > Modules > app > Module SDK = Project SDK (10)
Gradle Scripts > gradle.properties > org.gradle.configureondemand=false
Gradle Scripts > gradle-wrapper.properties > org.gradle.configureondemand=false

但我还是犯了一个错误:

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.

那里怎么了?

共有1个答案

阮华美
2023-03-14

在以下设置中执行此操作

文件--

取消勾选或取消选择按需配置选项

 类似资料: