Skip to content Skip to sidebar Skip to footer

Couldn't Run Google Maps Android Api Utility Demo

i'm having problems to run the Google Maps Android API Utility Demo, it shows this error: 04-03 16:32:37.397: E/dalvikvm(2592): Could not find class 'com.google.maps.android.util

Solution 1:

I solved this by adding the GoogleMapsUtil as a library to the demo project.

If you are following the setup guide at https://developers.google.com/maps/documentation/android/utility/setup at the step Reference the utility library from the utility demo app do the following instead:

  1. Right click on your demo project (MainActivity) and choose Properties.
  2. Click the Android tab.
  3. Under the Library section click Add and select the maps util project (called library)

Solution 2:

The docs tell you to use:

compile'com.google.maps.android:android-maps-utils:0.4+'

Using this will give the error. You must use android-maps-utils:0.3+

compile'com.google.maps.android:android-maps-utils:0.3+'

This will get rid of the error.

Post a Comment for "Couldn't Run Google Maps Android Api Utility Demo"