Caused by: java.lang.IllegalStateException: No value has been specified for this provider
In my case, I haven't installed a compile SDK.
eg: If you have mentioned your
compileSdkVersion 28. make sure it is installed in your SDK manager. Install it if you don't have it already.
I solved this issue by opening Gradle Scripts > settings.gradle remove include ':app' and then open Files > and Sync project with gradle files .
then again open Gradle Scripts > settings.gradle and add include ':app' and then open Files > and Sync project with gradle files .
This worked for me .