0

For some reason Android Studio gives me an error:

Failed to refresh Gradle project: Cause: com.google.common.collect.Maps

gradlew --stacktrace:
...
java.lang.NoClassDefFoundError: com.google.common.collect.Map
...

How to fix this?

Pranav Singh
  • 17,079
  • 30
  • 77
  • 104
Andy
  • 953
  • 1
  • 8
  • 18
  • It is not duplicate: 1. Gradle 0.9.+/0.9.2 error: Unable to load class 'com.android.builder.testing.api.DeviceProvider' answer was not accepted! 2. My fix is to remove .gradle dir and set maven central repo. – Andy Mar 29 '14 at 12:04

1 Answers1

0

I think this question is similar to the other one about an update to android studio 5.2.... see solution at Gradle 0.9.+/0.9.2 error: Unable to load class 'com.android.builder.testing.api.DeviceProvider'

Community
  • 1
  • 1
Hellmy
  • 76
  • 6
  • I know you cannot comment yet with 1 rep, but this should really be a comment rather than an answer ;). – Terry Seidler Mar 27 '14 at 15:40
  • It is not duplicate: 1. Gradle 0.9.+/0.9.2 error: Unable to load class 'com.android.builder.testing.api.DeviceProvider' answer was not accepted! 2. My fix is to remove .gradle dir and set maven central repo. – Andy Mar 29 '14 at 12:01