发布于 4年前

Android Studio 3.1.2:Configuration on demand is not supported by the current version of the Android Gradle plugin

升级到Android Studio 3.1.2,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并没有起作用。

禁用on demand需要两步:

  1. 在gradle.properties删除org.gradle.configureondemand
  2. Windows:File > Settings > Build, Execution, Deployment > Compiler,去掉configure on demand的勾选
©2020 edoou.com   京ICP备16001874号-3