In the most recent update of Android Studio (v 0.5.7), the option "configure-on-demand" is used by default for gradle builds. This is causing a problem in my current project build. When I try to sync my project with gradle files in Android Studio, I get the following error:
Error:A problem occurred configuring project ':PROJECT_NAME'. Configuration with name 'default' not found.
However everything works fine when I build using command line without the "configure-on-demand" flag.
I tried disabling it by putting "org.gradle.configureondemand=false" in my gradle.properties but it seems that Android Studio doesn't respect this. I still get the same error and the gradle logs show:
Configuration on demand is an incubating feature
Is there a way to disable this in Android Studio ?
For Android Studio 1.5.1 - 3.1.3: Go to File > Settings > Build, Execution, Deployment > Compiler and turn off "Configure on demand".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With