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 ?