as版本:android studio 3.3
gradle版本:distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
报错问题 :
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
解决办法:
项目目录下面gradle.properties文件下面添加配置
org.gradle.configureondemand=false
同时检查下安装gradle目录下面的gradle.properties配置
org.gradle.configureondemand=true 要改掉,也设置为false