I was trying to add a dependency to my application and I accidentally modified the wrong build.gradle file and now my application no longer builds correctly.
This is my
Not mentioned here, so maybe it can help some people. Got this error and solved it by doing a gradle sync (somehow, android studio was not suggesting it).
Check your settings.gradle. Your module gradle has to be include in your settings.gradle.
include ':app'
You must to change that include for the name of the module of your application. If not, try to remove that include, and restart the Android studio :)