question

SavageKing avatar image
SavageKing asked

Amazon Mapactivity Crash

Okay, so I am trying to display maps inside my app. I am using the Amazon Kindle Emulator HDX 7 within Eclipse IDE. I have the project build target set to the Amazon Kindle Fire HDX 7'. I installed the jar by going to java build path -> libraries -> external jars -> then navigated to where the map jar was located. Now the first problem. When I try to start the activity responsible for displaying the map I get the following error 01-30 07:09:08.552: W/dalvikvm(1884): Unable to resolve superclass of Lcom/savageking/empireofbasesDebug/KindleActivity; (1133) 01-30 07:09:08.552: W/dalvikvm(1884): Link of class 'Lcom/savageking/empireofbasesDebug/KindleActivity;' failed 01-30 07:09:08.562: E/dalvikvm(1884): Could not find class 'com.savageking.empireofbasesDebug.KindleActivity', referenced from method com.savageking.empireofbasesDebug.MainShader$3.run 01-30 07:09:08.562: W/dalvikvm(1884): VFY: unable to resolve const-class 2338 (Lcom/savageking/empireofbasesDebug/KindleActivity;) in Lcom/savageking/empireofbasesDebug/MainShader$3; 01-30 07:09:08.562: D/dalvikvm(1884): VFY: replacing opcode 0x1c at 0x000e 01-30 07:09:08.572: D/AndroidRuntime(1884): Shutting down VM 01-30 07:09:08.572: W/dalvikvm(1884): threadid=1: thread exiting with uncaught exception (group=0x40a71930) 01-30 07:09:08.592: E/AndroidRuntime(1884): FATAL EXCEPTION: main 01-30 07:09:08.592: E/AndroidRuntime(1884): java.lang.NoClassDefFoundError: com.savageking.empireofbasesDebug.KindleActivity 01-30 07:09:08.592: E/AndroidRuntime(1884): at com.savageking.empireofbasesDebug.MainShader$3.run(MainShader.java:955) 01-30 07:09:08.592: E/AndroidRuntime(1884): at android.os.Handler.handleCallback(Handler.java:725) 01-30 07:09:08.592: E/AndroidRuntime(1884): at android.os.Handler.dispatchMessage(Handler.java:92) 01-30 07:09:08.592: E/AndroidRuntime(1884): at android.os.Looper.loop(Looper.java:137) 01-30 07:09:08.592: E/AndroidRuntime(1884): at android.app.ActivityThread.main(ActivityThread.java:5041) 01-30 07:09:08.592: E/AndroidRuntime(1884): at java.lang.reflect.Method.invokeNative(Native Method) 01-30 07:09:08.592: E/AndroidRuntime(1884): at java.lang.reflect.Method.invoke(Method.java:511) 01-30 07:09:08.592: E/AndroidRuntime(1884): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 01-30 07:09:08.592: E/AndroidRuntime(1884): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 01-30 07:09:08.592: E/AndroidRuntime(1884): at dalvik.system.NativeStart.main(Native Method) In a nutshell, it is saying that it cannot find my class. I did a little research online, and some people suggest that if you are working with an external jar then you should go to your project properties -> java build path -> order and export and then check that external jar. So I do that then I get a different error. 01-30 06:56:04.992: E/AndroidRuntime(1423): FATAL EXCEPTION: main 01-30 06:56:04.992: E/AndroidRuntime(1423): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.savageking.empireofbasesDebug/com.savageking.empireofbasesDebug.KindleActivity}: java.lang.RuntimeException: Stub! 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.ActivityThread.access$600(ActivityThread.java:141) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.os.Handler.dispatchMessage(Handler.java:99) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.os.Looper.loop(Looper.java:137) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.ActivityThread.main(ActivityThread.java:5041) 01-30 06:56:04.992: E/AndroidRuntime(1423): at java.lang.reflect.Method.invokeNative(Native Method) 01-30 06:56:04.992: E/AndroidRuntime(1423): at java.lang.reflect.Method.invoke(Method.java:511) 01-30 06:56:04.992: E/AndroidRuntime(1423): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 01-30 06:56:04.992: E/AndroidRuntime(1423): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 01-30 06:56:04.992: E/AndroidRuntime(1423): at dalvik.system.NativeStart.main(Native Method) 01-30 06:56:04.992: E/AndroidRuntime(1423): Caused by: java.lang.RuntimeException: Stub! 01-30 06:56:04.992: E/AndroidRuntime(1423): at com.amazon.geo.maps.MapActivity. (MapActivity.java:26) 01-30 06:56:04.992: E/AndroidRuntime(1423): at com.savageking.empireofbasesDebug.KindleActivity. (KindleActivity.java:37) 01-30 06:56:04.992: E/AndroidRuntime(1423): at java.lang.Class.newInstanceImpl(Native Method) 01-30 06:56:04.992: E/AndroidRuntime(1423): at java.lang.Class.newInstance(Class.java:1319) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.Instrumentation.newActivity(Instrumentation.java:1054) 01-30 06:56:04.992: E/AndroidRuntime(1423): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097) 01-30 06:56:04.992: E/AndroidRuntime(1423): ... 11 more Pretty much, I am getting the stub error. So I don't know what to do. Any recommendations or advice on how to fix this setup? SavageKing
amazon maps
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi SavageKing, Please refer this message in order to fix the issue : https://forums.developer.amazon.com/forums/thread.jspa?messageID=3673๙
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.