I have mapstest app ..

---AndroidManifest.xml------------
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
      package="com.dan.maptest"
      android:versionCode="1"
      android:versionName="1.0">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".maptest"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    <uses-library android:name="com.google.android.maps"
android:required="true"></uses-library>
</application>
    <uses-sdk android:minSdkVersion="5" />

<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-
permission>
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"></uses-
permission>
<uses-permission android:name="android.permission.INTERNET"></uses-
permission>
</manifest>


The activity itself is fairly simple

public class maptest extends MapActivity {
//bunch of stuff

}


Then when I try to run my app on the emulator

I/ActivityManager(   60): Start proc com.dan.maptest for activity
com.dan.maptest/.maptest: pid=221 uid=10025 gids={3003}
D/NetworkLocationProvider(   60): onDataConnectionStateChanged 0
D/dalvikvm(  198): LinearAlloc 0x0 used 634508 of 5242880 (12%)
D/ddm-heap(  163): Got feature list request
D/ddm-heap(  206): Got feature list request
D/        (  206): unable to unlink '/data/data/com.android.alarmclock/
shared_prefs/AlarmClock.xml.bak': No such file or directory (errno=2)
D/ddm-heap(  221): Got feature list request
I/ARMAssembler(   60): generated
scanline__00000177:03515104_00000001_00000000 [ 73 ipp] (95 ins) at
[0x3925b8:0x392734] in 870781 ns
I/ARMAssembler(   60): generated
scanline__00000077:03010104_00000004_00000000 [ 22 ipp] (41 ins) at
[0x393f70:0x394014] in 1371962 ns
W/BackupManagerService(   60): dataChanged but no participant
pkg='com.android.providers.settings' uid=10014
W/dalvikvm(  221): Class resolved by unexpected DEX: Lcom/dan/maptest/
maptest;(0x43ab5d48):0x11e578 ref [Lcom/google/android/maps/
MapActivity;] Lcom/google/an
droid/maps/MapActivity;(0x43ab5d48):0x11da08
W/dalvikvm(  221): (Lcom/dan/maptest/maptest; had used a different
Lcom/google/android/maps/MapActivity; during pre-verification)
W/dalvikvm(  221): Unable to resolve superclass of Lcom/dan/maptest/
maptest; (38)
W/dalvikvm(  221): Link of class 'Lcom/dan/maptest/maptest;' failed
D/AndroidRuntime(  221): Shutting down VM
W/dalvikvm(  221): threadid=3: thread exiting with uncaught exception
(group=0x4001b188)
E/AndroidRuntime(  221): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  221): java.lang.IllegalAccessError: Class ref in
pre-verified class resolved to unexpected implementation
E/AndroidRuntime(  221):        at dalvik.system.DexFile.defineClass
(Native Method)
E/AndroidRuntime(  221):        at
dalvik.system.DexFile.loadClassBinaryName(DexFile.java:209)
E/AndroidRuntime(  221):        at
dalvik.system.PathClassLoader.findClass(PathClassLoader.java:203)
E/AndroidRuntime(  221):        at java.lang.ClassLoader.loadClass
(ClassLoader.java:573)
E/AndroidRuntime(  221):        at java.lang.ClassLoader.loadClass
(ClassLoader.java:532)
E/AndroidRuntime(  221):        at
android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(  221):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2367)
E/AndroidRuntime(  221):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2470)
E/AndroidRuntime(  221):        at android.app.ActivityThread.access
$2200(ActivityThread.java:119)
E/AndroidRuntime(  221):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1821)
E/AndroidRuntime(  221):        at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime(  221):        at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  221):        at android.app.ActivityThread.main
(ActivityThread.java:4310)
E/AndroidRuntime(  221):        at
java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime(  221):        at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime(  221):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime(  221):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime(  221):        at dalvik.system.NativeStart.main
(Native Method)
W/BackupManagerService(   60): dataChanged but no participant
pkg='com.android.providers.settings' uid=10014

what am I missing here .. the same on donut emulator and an 1.5 device.

-- 
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