when i try to build android application i get this error:
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.
after adding this line into this file as gradle.properties
and try to build again, i get error too
org.gradle.daemon=true
org.gradle.jvmargs=-Xmx6144M -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
org.gradle.parallel=true
android.enableBuildCache=true
org.gradle.configureondemand=false