Hi all,

I am accessing the Google Maps API from the device. The app is managed
using maven and during development I added the necessary dependencies
to include the Maps library:

<dependency>
<groupId>com.google.android.maps</groupId>
<artifactId>maps</artifactId>
<version>4_r2</version>
<scope>provided</scope>
</dependency>

The app compiles fine and by using the 'provided' scope as suggested
by the maven pages
on Android, the app should use the phone's maps.jar at runtime. But it
doesn't. I get the
following - the MapActivity class cannot be resolved and I get the
cross-loader issue.
Looking at the apk's dex classes I do see that the maps.jar classes
are included in the
apk. Has anyone seen this before? Could this be a maven issue?


W/dalvikvm( 1764): Class resolved by unexpected DEX: LgoogleMapView;
(0x437441e8):0x1af988 ref [Lcom/google/android/maps/MapActivity;] Lcom/
google/android/maps/MapActivity;(0x437441e8):0x1a4068
W/dalvikvm( 1764): Unable to resolve superclass of LgoogleMapView;
(86)
W/dalvikvm( 1764): Link of class 'LgoogleMapView;' failed
D/AndroidRuntime( 1764): Shutting down VM
W/dalvikvm( 1764): threadid=3: thread exiting with uncaught exception
(group=0x4001da28)
E/AndroidRuntime( 1764): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime( 1764): java.lang.NoClassDefFoundError: googleMapView
E/AndroidRuntime( 1764):        at E/AndroidRuntime( 1764): Caused by:
java.lang.IllegalAccessError: cross-loader access from pre-verified
class
E/AndroidRuntime( 1764):        at
dalvik.system.DexFile.defineClass(Native Method)
E/AndroidRuntime( 1764):        at
dalvik.system.DexFile.loadClass(DexFile.java:193)
E/AndroidRuntime( 1764):        at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
E/AndroidRuntime( 1764):        at
java.lang.ClassLoader.loadClass(ClassLoader.java:573)
E/AndroidRuntime( 1764):        at
java.lang.ClassLoader.loadClass(ClassLoader.java:532)
E/AndroidRuntime( 1764):        ... 10 more
I/Process (   86): Sending signal. PID: 1764 SIG: 3
I/dalvikvm( 1764): threadid=7: reacting to signal 3
I/dalvikvm( 1764): Wrote stack trace to '/data/anr/traces.txt'


Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to