Just out of nowhere got this issue on every project in Android Studio 5.2
Gradle 'MyApplication4' project refresh failed:
Cause: com.google.common.collect.Maps
Gradle settings
Can really find any infomation about it so will make a check here before reinstall
If you change classpath 'com.android.tools.build:gradle:0.9.+'
in your build.gradle to classpath 'com.android.tools.build:gradle:0.9.1'
it should fix it.
The new release 0.9.2 breaks something.
Deleting $HOME/.gradle/caches directory and then rebuilding works (It may be required to restart Android Studio.).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With