8

Well just finished an application with some basic map functionality. Was testing across multiple sdk to ensure proper execution and support.

Found that it would not execute on a Tablet that I have which runs on Android 4.0.3 ICS. (Note: Standard MAPS and NAVIGATION apps work fine).

Executing the same for an emulator wont raise any exception and run fine. Tried to Google around, found that the exception: java.lang.NoClassDefFoundError: android.security.MessageDigest is caused due to some firmware compatibility / mis-match with Google MAPS API / SDK.

Certain other people suggest to use java.security.MessageDigest but in this case I / we won't be able to edit the com.google.maps.jar on our own. Can you please suggest a work around or some trick to ensure it works for Android 4.0.3 ICS devices

Community
  • 1
  • 1
Hardik Mistry
  • 178
  • 1
  • 3
  • 13
  • On which tablet did you test? – overbet13 Jul 17 '12 at 07:22
  • I tried it on Hyundai A7 – Hardik Mistry Jul 17 '12 at 07:26
  • 07-17 00:33:01.648: E/AndroidRuntime(1626): FATAL EXCEPTION: main 07-17 00:33:01.648: E/AndroidRuntime(1626): java.lang.NoClassDefFoundError: android.security.MessageDigest 07-17 00:33:01.648: E/AndroidRuntime(1626): at com.google.android.maps.KeyHelper.getSignatureFingerprint(KeyHelper.java:60) 07-17 00:33:01.648: E/AndroidRuntime(1626): at com.google.android.maps.MapActivity.createMap(MapActivity.java:552) 07-17 00:33:01.648: E/AndroidRuntime(1626): at com.google.android.maps.MapActivity.onCreate(MapActivity.java:422) – Hardik Mistry Jul 17 '12 at 07:30
  • 7
    Found a work around. One thing was sure that the device running Android 4.0.3 ICS had some issue with Google Maps API. So tried to Google for any libraries specific to Android 4.0.3 ICS. Found this gapps-ics-20120429-signed.zip [http://www.mediafire.com/?owj7hj310var5rq]. Downloaded and connected by device to my Computer. Used following to install the library 1. adb remount 2. adb push system/etc/permissions/com.google.android.maps.xml /system/etc/permissions 3. adb push system/framework/com.google.android.maps.jar /system/framework 4. adb reboot , Got everything to work fine. Hope this helps – Hardik Mistry Jul 17 '12 at 08:34
  • Hi Mistry Hardik , I got the same problem, but i get the crash log from my users. how to you fix this problem? it seems to me that it is the problem of the device not about the program. can you give me some hints on that? – justicepenny Jan 23 '13 at 10:13
  • Yes justicepenny, the issue is with the device and not on the application side. Need to add missing com.google.android.maps.jar file to the system – Hardik Mistry Feb 01 '13 at 11:33
  • Please add the answer and mark it. – Warpzit Mar 06 '13 at 07:56

1 Answers1

0

Found a work around. One thing was sure that the device running Android 4.0.3 ICS had some issue with Google Maps API. So tried to Google for any libraries specific to Android 4.0.3 ICS. Found this gapps-ics-20120429-signed.zip [mediafire.com/?owj7hj310var5rq]. Downloaded and connected by device to my Computer. Used following to install the library 1. adb remount 2. adb push system/etc/permissions/com.google.android.maps.xml /system/etc/permissions 3. adb push system/framework/com.google.android.maps.jar /system/framework 4. adb reboot , Got everything to work fine. Hope this helps

Hardik Mistry
  • 178
  • 1
  • 3
  • 13