Log in or register to post comments

Android Native Activity

November 26, 2013 - 8:11am #1

Hello,

I've done this tutorial like 7 times now, and still going with the same problem.

 

The building with NDK and the APK's building are going well. The problem appears after I click on the "Start" button of the Demo. I am stuck with the following trace:

 

11-26 16:58:55.499: E/AndroidRuntime(10319): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.qualcomm.QCARSamples.ImageTargets/com.qualcomm.QCARSamples.ImageTargets.ImageTargets}: java.lang.IllegalArgumentException: Unable to find native library: main
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.os.Handler.dispatchMessage(Handler.java:99)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.os.Looper.loop(Looper.java:130)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.ActivityThread.main(ActivityThread.java:3687)
11-26 16:58:55.499: E/AndroidRuntime(10319): at java.lang.reflect.Method.invokeNative(Native Method)
11-26 16:58:55.499: E/AndroidRuntime(10319): at java.lang.reflect.Method.invoke(Method.java:507)
11-26 16:58:55.499: E/AndroidRuntime(10319): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
11-26 16:58:55.499: E/AndroidRuntime(10319): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
11-26 16:58:55.499: E/AndroidRuntime(10319): at dalvik.system.NativeStart.main(Native Method)
11-26 16:58:55.499: E/AndroidRuntime(10319): Caused by: java.lang.IllegalArgumentException: Unable to find native library: main
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.NativeActivity.onCreate(NativeActivity.java:187)
11-26 16:58:55.499: E/AndroidRuntime(10319): at com.qualcomm.QCARSamples.ImageTargets.ImageTargets.onCreate(ImageTargets.java:343)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
11-26 16:58:55.499: E/AndroidRuntime(10319): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
11-26 16:58:55.499: E/AndroidRuntime(10319): ... 11 more
 
 
If someone have an idea, I would be glad to hear it, I'm starting to despair right now ...
 
If someone success doing it I would be very thankful if he could send me his own test project in order to try if the problem comes from my device.
 
 
Thanks in advance for your help.
 
Best regards.
Log in or register to post comments