Configuration on demand is not supported by the current version of the Android Gradle plugin
No need to downgrade!
Disabling configure on demand requires two steps:
Remove
org.gradle.configureondemand
from gradle.properties.In Android Studio,
For Mac go to thePreferences
>Build, Execution, Deployment
>Compiler
and uncheck the configure on demand.
For Linux/Windows go to theFile
>Settings
>Build, Execution, Deployment
>Compiler
and uncheck the configure on demand.
Note, there are 2 gradle.properties
files
- In your project
gradle.properties
${HOME}/.gradle/gradle.properties
Why Configuration on demand is not supported by the current version of the Gradle plugin?
The reason why configuration on demand has been "removed" is to avoid unpredictable build error.
You still use gradle 4.4 though.
See Known issue about Android Studio
Configuration on demand with Gradle 4.6: If you're using either Android Plugin for Gradle 3.0.1 or 3.1.0 with Gradle 4.6, you should disable configuration on demand in your gradle.properties file, as shown below, to avoid some unpredictable build errors. This issue should be fixed in a future version of the plugin.
org.gradle.configureondemand=false
The project is using an incompatible version (AGP 7.3.0-alpha07) of the Android Gradle plugin
Update to the latest version of Android Studio i.e. Dolphin and your problem will be resolved
Related Topics
Force a Camera to Always Open in Portrait Mode in Android
How to Import Contacts from Phonebook to Our Application
Out of Memory While Creating Bitmaps on Device
Implementing a Simple Dagger2 Sample
Achartengine - Can't Figure How to Use Dates as X Axis - the File I Save Is Empty
Sliding Navigation Drawer Not Handling Clicks on Menu Items Android
Android Design Support Library Expandable Floating Action Button(Fab) Menu
How Can One Pull the (Private) Data of One's Own Android App
Configuration on Demand Is Not Supported by the Current Version of the Android Gradle Plugin
How to Move Main Content with Drawer Layout Left Side
Should Accessing Sharedpreferences Be Done Off the UI Thread
Failure [Install_Failed_Update_Incompatible] Even If App Appears to Not Be Installed
Get Response Status Code Using Retrofit 2.0 and Rxjava
Onnewintent() Lifecycle and Registered Listeners
Populating Spinner Directly in the Layout Xml