question

AGMSI avatar image
AGMSI asked

App Crashing on Launch While Trying To Test

I'm trying to add 'mobile ads' to a new application. I'm working with Eclipse - Helios when I use 'Run As - Android App' the app crashes with this 07-24 14:30:40.722: E/AndroidRuntime(2904): FATAL EXCEPTION: main 07-24 14:30:40.722: E/AndroidRuntime(2904): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.thecountrylife/com.thecountrylife.MenuActivity}: java.lang.ClassNotFoundException: Didn't find class "com.thecountrylife.MenuActivity" on path: /data/app/com.thecountrylife-2.apk:/system/app/MetricsApi-2037410.apk:/system/app/com.amazon.dp.logger.apk 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2142) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2283) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.ActivityThread.access$600(ActivityThread.java:146) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1245) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.os.Handler.dispatchMessage(Handler.java:99) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.os.Looper.loop(Looper.java:151) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.ActivityThread.main(ActivityThread.java:5152) 07-24 14:30:40.722: E/AndroidRuntime(2904): at java.lang.reflect.Method.invokeNative(Native Method) 07-24 14:30:40.722: E/AndroidRuntime(2904): at java.lang.reflect.Method.invoke(Method.java:511) 07-24 14:30:40.722: E/AndroidRuntime(2904): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 07-24 14:30:40.722: E/AndroidRuntime(2904): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560) 07-24 14:30:40.722: E/AndroidRuntime(2904): at dalvik.system.NativeStart.main(Native Method) 07-24 14:30:40.722: E/AndroidRuntime(2904): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.thecountrylife.MenuActivity" on path: /data/app/com.thecountrylife-2.apk:/system/app/MetricsApi-2037410.apk:/system/app/com.amazon.dp.logger.apk 07-24 14:30:40.722: E/AndroidRuntime(2904): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65) 07-24 14:30:40.722: E/AndroidRuntime(2904): at java.lang.ClassLoader.loadClass(ClassLoader.java:501) 07-24 14:30:40.722: E/AndroidRuntime(2904): at java.lang.ClassLoader.loadClass(ClassLoader.java:461) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.Instrumentation.newActivity(Instrumentation.java:1055) 07-24 14:30:40.722: E/AndroidRuntime(2904): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2133) I'm not sure where that path "/data/app/com.thecountrylife-2.apk" is coming from, since the app's apk is com.thecountrylife.apk Now this is a 'new' app that hasn't been submitted for publishing yet, but I did set it up and got an application key. Any help would be appreciated Thank you
mobile ads
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

tkoba@amazon avatar image
tkoba@amazon answered
Hi, Have you imported amazon-ads-x.x.xx.jar to your build path? Please make sure that you have imported Amazon Ads SDK in your apk. Did this issue occur before you integrated mobile ads library?
10 |5000

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