Seems like the C/C++ code failed to compile, and is not included in your apk. Try fixing the ndk and jni path in build properties, we made some changes to how those paths are found quite recentlyT-Bone wrote:I have never done that. So far, what I've done is merely exporting apk files and sending them to my phone. I will try to get logcat running and see if it works.Moe wrote:The same settings as for deploying from Eclipse should be fine.
Totally works. Here's my logcatCode: Select all
I/ActivityManager( 166): Start proc net.schattenkind.nativelove for activity net.schattenkind.nativelove/.LoveLauncher: pid=8538 uid=10071 gids={3003, 1015} D/szipinf ( 8538): Initializing inflate state D/dalvikvm( 8538): GC_EXTERNAL_ALLOC freed 42K, 51% free 2688K/5379K, external 0K/0K, paused 46ms D/dalvikvm( 8538): GC_EXTERNAL_ALLOC freed 10K, 50% free 2712K/5379K, external 498K/513K, paused 38ms I/ActivityManager( 166): Displayed net.schattenkind.nativelove/.LoveLauncher: +367ms D/dalvikvm( 8511): GC_EXPLICIT freed 380K, 46% free 3484K/6343K, external 6967K/7816K, paused 67ms I/ActivityManager( 166): Starting: Intent { dat=file:///mnt/sdcard/Android/data/com.dropbox.android/files/scratch/lua/loopbox/loopbox.love cmp=net.schattenkind.nativelove/.LoveNative } from pid 8538 D/libEGL ( 8538): loaded /system/lib/egl/libGLES_android.so D/libEGL ( 8538): loaded /system/lib/egl/libEGL_adreno200.so D/libEGL ( 8538): loaded /system/lib/egl/libGLESv1_CM_adreno200.so D/libEGL ( 8538): loaded /system/lib/egl/libGLESv2_adreno200.so I/System.out( 8538): java: init W/dalvikvm( 8538): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lnet/schattenkind/nativelove/LoveJNI; W/dalvikvm( 8538): threadid=9: thread exiting with uncaught exception (group=0x4018d560) E/AndroidRuntime( 8538): FATAL EXCEPTION: GLThread 10 E/AndroidRuntime( 8538): java.lang.ExceptionInInitializerError E/AndroidRuntime( 8538): at net.schattenkind.nativelove.LoveRenderView$1.onSurfaceChanged(LoveRenderView.java:31) E/AndroidRuntime( 8538): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1356) E/AndroidRuntime( 8538): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118) E/AndroidRuntime( 8538): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load ogg: findLibrary returned null E/AndroidRuntime( 8538): at java.lang.Runtime.loadLibrary(Runtime.java:429) E/AndroidRuntime( 8538): at java.lang.System.loadLibrary(System.java:554) E/AndroidRuntime( 8538): at net.schattenkind.nativelove.LoveJNI.<clinit>(LoveJNI.java:7) E/AndroidRuntime( 8538): ... 3 more W/ActivityManager( 166): Force finishing activity net.schattenkind.nativelove/.LoveNative W/ActivityManager( 166): Force finishing activity net.schattenkind.nativelove/.LoveLauncher I/ActivityManager( 166): No longer want com.koushikdutta.rommanager (pid 8031): hidden #16 I/dalvikvm( 8538): Rejecting re-init on previously-failed class Lnet/schattenkind/nativelove/LoveJNI; v=0x0 D/AndroidRuntime( 8538): Shutting down VM W/dalvikvm( 8538): threadid=1: thread exiting with uncaught exception (group=0x4018d560) I/Process ( 8538): Sending signal. PID: 8538 SIG: 9 I/ActivityManager( 166): Process net.schattenkind.nativelove (pid 8538) has died. I/WindowManager( 166): WIN DEATH: Window{409e82e8 net.schattenkind.nativelove/net.schattenkind.nativelove.LoveNative paused=false} I/WindowManager( 166): WIN DEATH: Window{409f9030 SurfaceView paused=false} W/InputManagerService( 166): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40ac1788 I/power ( 166): *** set_screen_state 0 I/gllauncher( 8511): onReceive() android.intent.action.SCREEN_OFF D/gllauncher( 8511): screenOff - null W/ActivityManager( 166): finishReceiver called but active receiver is different W/ActivityManager( 166): finishReceiver called but no pending broadcasts D/SurfaceFlinger( 166): About to give-up screen, flinger = 0x95008 D/WifiService( 166): acquireWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@40b3c928} D/WifiService( 166): releaseWifiLockLocked: WifiLock{NetworkLocationLocator type=2 binder=android.os.BinderProxy@40b3c928} D/dalvikvm( 1482): GC_FOR_MALLOC freed 334K, 44% free 3987K/7047K, external 0K/0K, paused 27ms D/szipinf ( 166): Initializing inflate state D/dalvikvm( 166): GC_EXTERNAL_ALLOC freed 277K, 49% free 7323K/14151K, external 5808K/5985K, paused 84ms D/dalvikvm( 166): GC_EXTERNAL_ALLOC freed 92K, 49% free 7334K/14151K, external 7494K/7712K, paused 96ms
![Wink ;)](./images/smilies/ms-wink.png)