本文翻译自:Configuration on demand is not supported by the current version of the Android Gradle plugin
After upgrading to Android Studio 3.1.2 I am getting the following error: 升级到Android Studio 3.1.2后,我收到以下错误:
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. 由于您使用的是Gradle 4.6或更高版本,因此当前版本的Android Gradle插件不支持按需配置。 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. 建议:通过在gradle.properties文件中设置org.gradle.configureondemand = false或使用小于4.6的Gradle版本,按需禁用配置。
I attempted following the suggestion but