Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable configure on demand in Android Studio v 0.5.7

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 ?

like image 577
aarkay Avatar asked May 09 '14 00:05

aarkay


1 Answers

For Android Studio 1.5.1 - 3.1.3: Go to File > Settings > Build, Execution, Deployment > Compiler and turn off "Configure on demand".

like image 195
Damnum Avatar answered Sep 28 '22 06:09

Damnum