Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 5.2 - refresh failed. Cause:com.google.common.collect.Maps [duplicate]

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

like image 529
Mathias Asberg Avatar asked Mar 26 '14 18:03

Mathias Asberg


2 Answers

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.

like image 117
Geoff Pascoe Avatar answered Oct 23 '22 07:10

Geoff Pascoe


Deleting $HOME/.gradle/caches directory and then rebuilding works (It may be required to restart Android Studio.).

like image 37
ismailarilik Avatar answered Oct 23 '22 06:10

ismailarilik