0

I downloaded the library from https://github.com/googlemaps/android-maps-utils and followed the steps https://developers.google.com/maps/documentation/android/utility/setup but I get

java.lang.NoClassDefFoundError: com.google.maps.android.utils.demo.CustomMarkerClusteringDemoActivity

I've added the library project to the MainActivity, as it described in the documentation

What is wrong with Google documentation ?

Rikki Tikki Tavi
  • 3,089
  • 5
  • 43
  • 81

2 Answers2

0

Try with this Go to Properties -> Java Build Path -> Order and Export

You should see the selected src and gen, and the order must be first src and then gen.

Android Private Libraries must be checked!

enter image description here

Jorgesys
  • 124,308
  • 23
  • 334
  • 268
0

I struggled with the same issue. Removing Android Dependencies under Java Build Path/Libraryies solved it for me.

Fubbe99
  • 35
  • 5