After upgrading to Android Studio 3.1.2 I am getting the following error:
Configuration on demand is not supported by the current version of the Andro
Go to File->Build,Excution,Deployment->Compiler and Uncheck Configure on Demand