I have updated my android studio to 3.1.4. Everything was working fine but after updating the studio, It is showing unexpected errors.
Followed the below steps to resolve,
But still facing the same issue. Any help will be appreciated.
Below is the screenshot,
Remove all the dependencies from your app level build.gradle and save it somewhere.
dependencies { }
Your dependencies section will look like this.
Sync the project now, and it will fail.
Add copy your saved dependencies and add them to your dependencies section.
Now go to file -> Sync Project with Gradle File.
Now you wont find any errors.