I need to experiment with the Google Play Games C++ SDK Samples for Android.
Running it from an emulator fails to sign in requesting to install the Google Play Games... which requires to be done manually, as I understand...
Running it from the Samsung Samsung Galaxy Note 10.1 GT-N8010 executing Android 4.1.2, the Button Clicker application fails at launch with the following error:
Cannot load library: load_library[1094]: Library
'ButtonClickerNativeActivity' not found
Note: This error does not show up when I run it from the emulator.
I don't understand why this fails and how to fix or work around this failure.
The sample loads the so this way:
public class ButtonClickerNativeActivity extends NativeActivity {
// Load SO
static {
System.load("libButtonClickerNativeActivity.so");
}
I confirm the package (ButtonClicker-debug.apk) contains the library in lib folder for armeabi, armeabi-v7a and x86.
Here is the logcat listing of the app start up:
01-28 15:18:44.885 31258-31258/? D/dalvikvm: Late-enabling CheckJNI
01-28 15:18:44.900 31258-31264/? E/jdwp: Failed sending reply to debugger: Broken pipe
01-28 15:18:44.900 31258-31264/? D/dalvikvm: Debugger has detached; object registry had 1 entries
01-28 15:18:44.945 31258-31258/? W/ActivityThread: Application com.google.example.games.ButtonClicker is waiting for the debugger on port 8100...
01-28 15:18:44.960 31258-31258/? I/System.out: Sending WAIT chunk
01-28 15:18:45.915 31258-31264/com.google.example.games.ButtonClicker I/dalvikvm: Debugger is active
01-28 15:18:45.965 31258-31258/com.google.example.games.ButtonClicker I/System.out: Debugger has connected
01-28 15:18:45.965 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.165 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.365 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.565 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.765 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:46.965 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:47.170 31258-31258/com.google.example.games.ButtonClicker I/System.out: waiting for debugger to settle...
01-28 15:18:47.370 31258-31258/com.google.example.games.ButtonClicker I/System.out: debugger has settled (1325)
01-28 15:18:47.510 31258-31258/com.google.example.games.ButtonClicker D/dalvikvm: Trying to load lib ButtonClickerNativeActivity 0x423b2428
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker W/dalvikvm: Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/google/example/games/ButtonClicker/ButtonClickerNativeActivity;
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker W/dalvikvm: Class init failed in newInstance call (Lcom/google/example/games/ButtonClicker/ButtonClickerNativeActivity;)
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker D/AndroidRuntime: Shutting down VM
01-28 15:18:47.515 31258-31258/com.google.example.games.ButtonClicker W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x41c3d2a0)
01-28 15:18:47.525 31258-31258/com.google.example.games.ButtonClicker E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.ExceptionInInitializerError
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: load_library[1094]: Library 'ButtonClickerNativeActivity' not found
at java.lang.Runtime.load(Runtime.java:340)
at java.lang.System.load(System.java:521)
at com.google.example.games.ButtonClicker.ButtonClickerNativeActivity.(ButtonClickerNativeActivity.java:29)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1319)
at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2025)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
01-28 15:18:58.720 31258-31258/? I/Process: Sending signal. PID: 31258 SIG: 9
I changed the following line in the sample code (ButtonClickerNativeActivity.java) and the application launched on the Samsung device without the exception.
public class ButtonClickerNativeActivity extends NativeActivity {
// Load SO
static {
//System.load("libButtonClickerNativeActivity.so");
System.loadLibrary("ButtonClickerNativeActivity");
}
Related
I just loaded my app created by cocos2dx-3.10 and when I open with it an AVD (again I haven't done any modifications to the app) the app crashes and gives the error: Unfortunately, libcocos2dx has crashed.
here is what I get in my android Monitor:
03-05 18:34:56.668 1435-1435/? D/dalvikvm: Not late-enabling CheckJNI (already on)
03-05 18:34:56.989 1435-1435/com.trying.name E/Trace: error opening trace file: No such file or directory (2)
03-05 18:34:57.419 1435-1435/com.trying.name D/AndroidRuntime: Shutting down VM
03-05 18:34:57.419 1435-1435/com.trying.name W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xb2f2b288)
03-05 18:34:57.518 1435-1435/com.trying.name E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:263)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
03-05 18:35:11.559 1435-1435/? I/Process: Sending signal. PID: 1435 SIG: 9
I have an android studio project, which builds with 0 errors and 0 warnings, however when the emulator starts up it is a old version of my application.
I have tried wiping data from the emulator, rebuilding the project, cleaning the project, restarting the machine, creating a new virtual machine.
My debug log;
02-05 02:28:53.197 1759-1759/uk.ac.app.app E/libprocessgroup﹕ failed to make and chown /acct/uid_10053: Read-only file system
02-05 02:28:53.197 1759-1759/uk.ac.app.app W/Zygote createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?
02-05 02:28:53.198 1759-1759/uk.ac.app.app I/art﹕ Not late-enabling -Xcheck:jni (already on)
02-05 02:28:53.242 1759-1759/uk.ac.app.app W/ActivityThread﹕ Application uk.ac.app.app is waiting for the debugger on port 8100...
02-05 02:28:53.246 1759-1759/uk.ac.app.app I/System.out﹕ Sending WAIT chunk
02-05 02:28:53.299 1759-1766/uk.ac.app.app I/art﹕ Debugger is no longer active
02-05 02:28:54.662 1759-1766/uk.ac.app.app I/art﹕ Debugger is active
02-05 02:28:54.719 1759-1759/uk.ac.app.app I/System.out﹕ Debugger has connected
02-05 02:28:54.720 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:54.924 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.137 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.345 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.563 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:55.806 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.014 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.224 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.437 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.645 1759-1759/uk.ac.app.app I/System.out﹕ waiting for debugger to settle...
02-05 02:28:56.865 1759-1759/uk.ac.app.app I/System.out﹕ debugger has settled (1511)
02-05 02:28:58.737 1759-1759/uk.ac.app.app D/gralloc_goldfish﹕ Emulator without GPU emulation detected.
02-05 02:29:06.263 1759-1771/uk.ac.app.app I/art﹕ Background sticky concurrent mark sweep GC freed 1867(113KB) AllocSpace objects, 0(0B) LOS objects, 37% free, 387KB/623KB, paused 2.030ms total 112.509ms
The issue was a broken XML file in the res directory.
This question already has answers here:
Source not found Android?
(5 answers)
Closed 9 years ago.
I have been debugging my android project but when i am trying to step into a braekpoint then a screen comes which says SOURCE NOT FOUND ....plz suggest a solution..i have seen previous suggestions but those didnt work....there is an option provided-- CHANGE ATTACHED SOURCE.. which source i have to provide?? i am providing the link for the video..it is ellaborated in the video..plz help...thanks in advance for ur answers
https://docs.google.com/file/d/0B_I2kWyZePW6VnhOLUxjTFhpTk0/edit?usp=sharing
this is what the log cat says:
04-15 11:15:02.380: D/AndroidRuntime(379): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
04-15 11:15:02.380: D/AndroidRuntime(379): CheckJNI is ON
04-15 11:15:02.490: D/AndroidRuntime(379): --- registering native functions ---
04-15 11:15:03.250: D/dalvikvm(284): GC_EXPLICIT freed 523 objects / 29592 bytes in 131ms
04-15 11:15:03.490: D/PackageParser(59): Scanning package: /data/app/vmdl55176.tmp
04-15 11:15:03.960: D/dalvikvm(59): GC_FOR_MALLOC freed 18707 objects / 974816 bytes in 89ms
04-15 11:15:04.030: I/PackageManager(59): Removing non-system package:com.drugindexx.demo
04-15 11:15:04.030: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:04.030: I/Process(59): Sending signal. PID: 362 SIG: 9
04-15 11:15:04.050: W/InputManagerService(59): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy#4507a590
04-15 11:15:04.440: D/PackageManager(59): Scanning package com.drugindexx.demo
04-15 11:15:04.440: I/PackageManager(59): Package com.drugindexx.demo codePath changed from /data/app/com.drugindexx.demo-1.apk to /data/app/com.drugindexx.demo- 2.apk; Retaining data and using new
04-15 11:15:04.450: I/PackageManager(59): /data/app/com.drugindexx.demo-2.apk changed; unpacking
04-15 11:15:04.471: D/installd(35): DexInv: --- BEGIN '/data/app/com.drugindexx.demo-2.apk' ---
04-15 11:15:04.820: D/dalvikvm(386): DexOpt: load 42ms, verify 205ms, opt 7ms
04-15 11:15:04.830: D/installd(35): DexInv: --- END '/data/app/com.drugindexx.demo-2.apk' (success) ---
04-15 11:15:04.830: W/PackageManager(59): Code path for pkg : com.drugindexx.demo changing from /data/app/com.drugindexx.demo-1.apk to /data/app/com.drugindexx.demo-2.apk
04-15 11:15:04.830: W/PackageManager(59): Resource path for pkg : com.drugindexx.demo changing from /data/app/com.drugindexx.demo-1.apk to /data/app/com.drugindexx.demo-2.apk
04-15 11:15:04.830: D/PackageManager(59): Activities: com.drugindexx.demo.jsonparsngactivity com.drugindexx.demo.LoginPage com.drugindexx.demo.Registration com.drugindexx.demo.UserDetails com.drugindexx.demo.MenuOptions com.drugindexx.demo.SarchIndx com.drugindexx.demo.jsonparsngactivity com.drugindexx.demo.Showdetails com.drugindexx.demo.SmsEx com.drugindexx.demo.Settings com.drugindexx.demo.AdvancedSearch com.drugindexx.demo.Gmap com.drugindexx.demo.MyItemizedOverlay com.drugindexx.demo.G
04-15 11:15:04.850: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:04.950: I/installd(35): move /data/dalvik-cache/data#app#com.drugindexx.demo-2.apk#classes.dex -> /data/dalvik-cache/data#app#com.drugindexx.demo-2.apk#classes.dex
04-15 11:15:04.950: D/PackageManager(59): New package installed in /data/app/com.drugindexx.demo-2.apk
04-15 11:15:05.080: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:05.140: D/dalvikvm(134): GC_EXPLICIT freed 69 objects / 2728 bytes in 50ms
04-15 11:15:05.390: W/RecognitionManagerService(59): no available voice recognition services found
04-15 11:15:05.490: D/dalvikvm(155): GC_EXPLICIT freed 1809 objects / 92640 bytes in 328ms
04-15 11:15:05.710: D/dalvikvm(59): GC_EXPLICIT freed 8511 objects / 535000 bytes in 199ms
04-15 11:15:05.710: I/installd(35): unlink /data/dalvik-cache/data#app#com.drugindexx.demo-1.apk#classes.dex
04-15 11:15:05.710: D/AndroidRuntime(379): Shutting down VM
04-15 11:15:05.741: D/dalvikvm(379): Debugger has detached; object registry had 1 entries
04-15 11:15:05.760: I/dalvikvm(379): JNI: AttachCurrentThread (from ???.???)
04-15 11:15:05.760: I/AndroidRuntime(379): NOTE: attach of thread 'Binder Thread #3' failed
04-15 11:15:06.220: D/AndroidRuntime(392): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
04-15 11:15:06.220: D/AndroidRuntime(392): CheckJNI is ON
04-15 11:15:06.330: D/AndroidRuntime(392): --- registering native functions ---
04-15 11:15:06.850: I/ActivityManager(59): Force stopping package com.drugindexx.demo uid=10040
04-15 11:15:06.850: I/ActivityManager(59): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.drugindexx.demo/.jsonparsngactivity }
04-15 11:15:06.960: D/AndroidRuntime(392): Shutting down VM
04-15 11:15:06.969: I/ActivityManager(59): Start proc com.drugindexx.demo for activity com.drugindexx.demo/.jsonparsngactivity: pid=398 uid=10040 gids={3003}
04-15 11:15:06.980: D/jdwp(392): Got wake-up signal, bailing out of select
04-15 11:15:06.980: D/dalvikvm(392): Debugger has detached; object registry had 1 entries
04-15 11:15:07.260: W/ActivityThread(398): Application com.drugindexx.demo is waiting for the debugger on port 8100...
04-15 11:15:07.280: I/System.out(398): Sending WAIT chunk
04-15 11:15:07.290: I/dalvikvm(398): Debugger is active
04-15 11:15:07.310: I/System.out(398): Debugger has connected
04-15 11:15:07.310: I/System.out(398): waiting for debugger to settle...
04-15 11:15:07.519: I/System.out(398): waiting for debugger to settle...
04-15 11:15:07.719: I/System.out(398): waiting for debugger to settle...
04-15 11:15:07.919: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.119: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.320: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.519: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.719: I/System.out(398): waiting for debugger to settle...
04-15 11:15:08.919: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.149: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.356: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.564: I/System.out(398): waiting for debugger to settle...
04-15 11:15:09.772: I/System.out(398): debugger has settled (1408)
04-15 11:15:13.110: W/System.err(398): java.lang.NullPointerException
04-15 11:15:13.129: W/System.err(398): at java.net.URI$Helper.parseURI(URI.java:314)
04-15 11:15:13.129: W/System.err(398): at java.net.URI$Helper.access$100(URI.java:302)
04-15 11:15:13.140: W/System.err(398): at java.net.URI.<init>(URI.java:87)
04-15 11:15:13.140: W/System.err(398): at com.drugindexx.others.JSONParser.getStringContent(JSONParser.java:37)
04-15 11:15:13.140: W/System.err(398): at com.drugindexx.demo.jsonparsngactivity$FindStoreLocators.doInBackground(jsonparsngactivity.java:237)
04-15 11:15:13.150: W/System.err(398): at com.drugindexx.demo.jsonparsngactivity$FindStoreLocators.doInBackground(jsonparsngactivity.java:1)
04-15 11:15:13.150: W/System.err(398): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-15 11:15:13.160: W/System.err(398): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-15 11:15:13.170: W/System.err(398): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-15 11:15:13.170: W/System.err(398): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-15 11:15:13.181: W/System.err(398): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-15 11:15:13.181: W/System.err(398): at java.lang.Thread.run(Thread.java:1096)
04-15 11:15:16.922: W/ActivityManager(59): Launch timeout has expired, giving up wake lock!
04-15 11:15:17.221: W/ActivityManager(59): Activity idle timeout for HistoryRecord{44eb0d10 com.drugindexx.demo/.jsonparsngactivity}
04-15 11:15:22.391: D/dalvikvm(284): GC_EXPLICIT freed 216 objects / 14432 bytes in 106ms
04-15 11:15:27.490: D/dalvikvm(295): GC_EXPLICIT freed 848 objects / 58536 bytes in 148ms
04-15 11:15:32.220: D/dalvikvm(398): threadid=7: still suspended after undo (sc=1 dc=1 s=Y)
04-15 11:15:32.500: D/SntpClient(59): request time failed: java.net.SocketException: Address family not supported by protocol
04-15 11:15:32.521: D/dalvikvm(248): GC_EXPLICIT freed 317 objects / 17472 bytes in 135ms
04-15 11:15:37.489: D/dalvikvm(134): GC_EXPLICIT freed 784 objects / 44784 bytes in 48ms
04-15 11:17:27.744: D/dalvikvm(398): threadid=7: still suspended after undo (sc=1 dc=1 s=Y)
I think what you are trying to do is to debug android sources.
And if you want to do that you need to attach the sources check out :
http://code.google.com/p/adt-addons/
But be aware: It's very unlikely that you are really needed to debug the sources, because more likely you did something wrong (Exception) BEFORE the "class not found..." Window pops up.
The jdom library is there and i have removed and added it again and again to the build path. And, i have cleaned the project as well many times. But still iam getting this error:
04-27 10:51:27.867: W/ActivityThread(530): Application com.pkg.src.nhs.glos is waiting for the debugger on port 8100...
04-27 10:51:27.936: I/System.out(530): Sending WAIT chunk
04-27 10:51:29.396: I/dalvikvm(530): Debugger is active
04-27 10:51:29.736: I/System.out(530): Debugger has connected
04-27 10:51:29.746: I/System.out(530): waiting for debugger to settle...
04-27 10:51:29.996: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.262: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.479: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.689: I/System.out(530): waiting for debugger to settle...
04-27 10:51:30.896: I/System.out(530): waiting for debugger to settle...
04-27 10:51:43.786: D/dalvikvm(553): GC freed 683 objects / 60040 bytes in 110ms
04-27 10:51:49.396: W/dalvikvm(553): VFY: unable to find class referenced in signature (Lcom/androidquery/AQuery;)
04-27 10:51:49.576: W/dalvikvm(553): VFY: unable to find class referenced in signature (Lcom/androidquery/util/XmlDom;)
04-27 10:51:49.646: W/dalvikvm(553): VFY: unable to find class referenced in signature (Lcom/androidquery/callback/AjaxStatus;)
04-27 10:51:49.646: I/dalvikvm(553): Could not find method com.androidquery.util.XmlDom.tags, referenced from method com.pkg.src.nhs.glos.MainActivity.setImageCallBack
04-27 10:51:49.646: W/dalvikvm(553): VFY: unable to resolve virtual method 80: Lcom/androidquery/util/XmlDom;.tags (Ljava/lang/String;)Ljava/util/List;
04-27 10:51:49.646: D/dalvikvm(553): VFY: replacing opcode 0x6e at 0x0013
04-27 10:51:49.646: D/dalvikvm(553): Making a copy of Lcom/pkg/src/nhs/glos/MainActivity;.setImageCallBack code (200 bytes)
04-27 10:51:50.126: E/dalvikvm(553): Could not find class 'org.jdom.input.SAXBuilder', referenced from method com.pkg.src.nhs.glos.MainActivity$SetImageTask.doInBackground
04-27 10:51:50.126: W/dalvikvm(553): VFY: unable to resolve new-instance 166 (Lorg/jdom/input/SAXBuilder;) in Lcom/pkg/src/nhs/glos/MainActivity$SetImageTask;
04-27 10:51:50.126: D/dalvikvm(553): VFY: replacing opcode 0x22 at 0x0009
04-27 10:51:50.126: D/dalvikvm(553): Making a copy of Lcom/pkg/src/nhs/glos/MainActivity$SetImageTask;.doInBackground code (205 bytes)
04-27 10:51:50.736: W/dalvikvm(553): threadid=15: thread exiting with uncaught exception (group=0x4001b188)
04-27 10:51:50.746: E/AndroidRuntime(553): Uncaught handler: thread AsyncTask #1 exiting due to uncaught exception
04-27 10:51:50.846: E/AndroidRuntime(553): java.lang.RuntimeException: An error occured while executing doInBackground()
04-27 10:51:50.846: E/AndroidRuntime(553): at android.os.AsyncTask$3.done(AsyncTask.java:200)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1068)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:561)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.lang.Thread.run(Thread.java:1096)
04-27 10:51:50.846: E/AndroidRuntime(553): Caused by: java.lang.NoClassDefFoundError: org.jdom.input.SAXBuilder
04-27 10:51:50.846: E/AndroidRuntime(553): at com.pkg.src.nhs.glos.MainActivity$SetImageTask.doInBackground(MainActivity.java:100)
04-27 10:51:50.846: E/AndroidRuntime(553): at com.pkg.src.nhs.glos.MainActivity$SetImageTask.doInBackground(MainActivity.java:1)
04-27 10:51:50.846: E/AndroidRuntime(553): at android.os.AsyncTask$2.call(AsyncTask.java:185)
04-27 10:51:50.846: E/AndroidRuntime(553): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
04-27 10:51:50.846: E/AndroidRuntime(553): ... 4 more
04-27 10:51:50.941: I/dalvikvm(553): threadid=7: reacting to signal 3
04-27 10:51:50.941: E/dalvikvm(553): Unable to open stack trace file '/data/anr/traces.txt': Permission denied
04-27 10:52:02.038: I/Process(553): Sending signal. PID: 553 SIG: 9
Check if the jdom library is checked in the Order and Export Tab of your build path Settings.
If it is not check it, do a clean and retry to run your application.
In Android Studio it must automatically added the jar files which you added to the "libs" folder in your project,but sometimes it doesn't do that.
So you have to go to "Project Structure" = ctrl+alt+shift+S for Windows users.
Then click "app" at the left side of the panel.
Then click Dependencies tab.
Then click on (+) -> jar dependencies.
Then in the libs folder choose your jar file.
Then click OK.
I'm using the book Learning Android Game Programming to learn andengine but I can't seem to get to square one.
I'm using eclipse, I've installed the sdk and platforms 4 8 10 and 15.
I've downloaded chapter 2 from this books' website.
When I run it, it crashes and I get the logcat below.
Please help, I've been stuck on this for over a week.
01-27 15:14:31.519: I/System.out(17507): Sending WAIT chunk
01-27 15:14:31.519: W/ActivityThread(17507): Application com.pearson.lagp.v3 is waiting for the debugger on port 8100...
01-27 15:14:32.149: I/dalvikvm(17507): Debugger is active
01-27 15:14:32.319: I/System.out(17507): Debugger has connected
01-27 15:14:32.319: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:32.520: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:32.720: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:32.920: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.130: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.330: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.531: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.731: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:33.931: I/System.out(17507): waiting for debugger to settle...
01-27 15:14:34.131: I/System.out(17507): debugger has settled (1324)
01-27 15:14:34.482: D/dalvikvm(17507): threadid=1: still suspended after undo (sc=1 dc=1)
01-27 15:15:12.048: D/AndroidRuntime(17507): Shutting down VM
01-27 15:15:12.048: W/dalvikvm(17507): threadid=1: thread exiting with uncaught exception (group=0x4001e578)
01-27 15:15:12.108: E/AndroidRuntime(17507): FATAL EXCEPTION: main
01-27 15:15:12.108: E/AndroidRuntime(17507): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.pearson.lagp.v3/com.pearson.lagp.v3.StartActivity}: java.lang.ClassNotFoundException: com.pearson.lagp.v3.StartActivity in loader dalvik.system.PathClassLoader[/data/app/com.pearson.lagp.v3-1.apk]
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1573)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.os.Handler.dispatchMessage(Handler.java:99)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.os.Looper.loop(Looper.java:130)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.main(ActivityThread.java:3691)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.reflect.Method.invokeNative(Native Method)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.reflect.Method.invoke(Method.java:507)
01-27 15:15:12.108: E/AndroidRuntime(17507): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:907)
01-27 15:15:12.108: E/AndroidRuntime(17507): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:665)
01-27 15:15:12.108: E/AndroidRuntime(17507): at dalvik.system.NativeStart.main(Native Method)
01-27 15:15:12.108: E/AndroidRuntime(17507): Caused by: java.lang.ClassNotFoundException: com.pearson.lagp.v3.StartActivity in loader dalvik.system.PathClassLoader[/data/app/com.pearson.lagp.v3-1.apk]
01-27 15:15:12.108: E/AndroidRuntime(17507): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
01-27 15:15:12.108: E/AndroidRuntime(17507): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
01-27 15:15:12.108: E/AndroidRuntime(17507): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1565)
01-27 15:15:12.108: E/AndroidRuntime(17507): ... 11 more
It is classnotfoundexception, I suspect the package name you have in manifest.xml is different from the package you declared for activity.