Unable to resolve superclass of Lcom/gizmo/tracker/XTrackerMap

by jason » Wed, 25 Nov 2009 08:50:20 GMT


Sponsored Links
 I have a XTrackerMap class that extends
com.google.android.maps.MapActivity. The application runs fine on the
HTC Hero device when connected via USB and uploaded via eclipse. If I
restart the phone and start the same application from the list of apps
on the phone, I get the following error; and subsequent application
crash.

11-24 16:17:12.774: WARN/dalvikvm(515): Unable to resolve superclass
of Lcom/gizmo/tracker/XTrackerMap; (57)
11-24 16:17:12.774: WARN/dalvikvm(515): Link of class 'Lcom/gizmo/
tracker/XTrackerMap;' failed
11-24 16:17:12.774: ERROR/dalvikvm(515): Could not find class
'com.gizmo.tracker.XTrackerMap', referenced from method
com.gizmo.tracker.TrackingActivity.initControls
11-24 16:17:12.774: WARN/dalvikvm(515): VFY: unable to resolve const-
class 89 (Lcom/gizmo/tracker/XTrackerMap;) in Lcom/gizmo/tracker/
TrackingActivity;
11-24 16:17:12.774: WARN/dalvikvm(515): VFY:  rejecting opcode 0x1c at
0x0082
11-24 16:17:12.774: WARN/dalvikvm(515): VFY:  rejected Lcom/gizmo/
tracker/TrackingActivity;.initControls ()V
11-24 16:17:12.774: WARN/dalvikvm(515): Verifier rejected class Lcom/
gizmo/tracker/TrackingActivity;
11-24 16:17:12.774: WARN/dalvikvm(515): Class init failed in
newInstance call (Lcom/gizmo/tracker/TrackingActivity;)
11-24 16:17:12.774: DEBUG/AndroidRuntime(515): Shutting down VM


And yes, I do have this entry in the manifest file:

<uses-library android:name="com.google.android.maps" />

Why does this work only when launched via eclipse and not in
standalone phone mode? The launch class is TrackingActivity; and the
initControls method of TrackingActiviy has the following line:

trackMapIntent = new Intent(this, XTrackerMap.class);

<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
        package="com.gizmo.tracker" android:versionCode="1"
android:versionName="1.1">
        <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <uses-library android:name="com.google.android.maps" />
...






--



Other Threads

1. ScrollView occupies entire screen height?

Hi,

I'm having trouble with this layout - I need a ScrollView, then a
LinearLayout with a button below that:

 <ScrollView height="fill_parent">
 </ScrollView>
 <LinearLayout height="wrap_content">
   <Button>
   <Button>
 </LinearLayout>

the scrollview pushes the linear layout under it off the screen. The
only way I can get this to work is if I explicitly set the scrollview
height in pixels to be less than the total height of the screen, but
hardcoding a height isn't going to work on different devices. How can
I do this?

Thanks
--~--~---------~--~----~------------~-------~--~----~

2. onSensorChanged: synchronized (this)?

Hi, I have a pretty simple question. For

public void onSensorChanged (int sensor, float[] values){synchronized
(this) {

what's "synchronized (this) " for...? I'm really new to Java...what's
gonna happen if I dont have this? Thank you very much.!!
--~--~---------~--~----~------------~-------~--~----~

3. How to use a buildin drawable resource?

4. Sometimes the running emulator is not found from within Eclipse?!

5. 1.6 upgrade for sim-free/unlocked ?

6. Publishing both free and paid versions of app on Android Market

7. "The project cannot be built until build path errors are resolved"