Android Studio Configuration on Demand Is Not Supported

October 4, 2018

Recently I updated a 1 year old android project (gradle, SDK, libraries, etc.) and bump into the following exception

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 file or use a Gradle version less than 4.6.

Goto File -> Settings -> Build, Excecution, Deployment -> Compiler and uncheck Configure on Demand.

NOTE: I am using Android Gradle and Gradle 4.10.2 (check in File -> Project Structure -> Project).


This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.