App has stopped unexpecttedly

Hello, can you help me?

I try run sample “HelloCpp”.
I corrected setting in AndroidManifest.xml, becose have error then build project:

android:configChanges="orientation">

Virtial device:
Nexus 4 (4.7"), Android 2.3.3, ARM (armeabi), RAM 1000
I have this logs:

12-08 00:56:29.193: D/AndroidRuntime(330): Shutting down VM
12-08 00:56:29.193: W/dalvikvm(330): threadid=1: thread exiting with uncaught exception (group=0x40015560)
12-08 00:56:29.213: E/AndroidRuntime(330): FATAL EXCEPTION: main
12-08 00:56:29.213: E/AndroidRuntime(330): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.cocos2dx.hellocpp/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to find native library: hellocpp
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.os.Handler.dispatchMessage(Handler.java:99)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.os.Looper.loop(Looper.java:123)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.ActivityThread.main(ActivityThread.java:3683)
12-08 00:56:29.213: E/AndroidRuntime(330):  at java.lang.reflect.Method.invokeNative(Native Method)
12-08 00:56:29.213: E/AndroidRuntime(330):  at java.lang.reflect.Method.invoke(Method.java:507)
12-08 00:56:29.213: E/AndroidRuntime(330):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
12-08 00:56:29.213: E/AndroidRuntime(330):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
12-08 00:56:29.213: E/AndroidRuntime(330):  at dalvik.system.NativeStart.main(Native Method)
12-08 00:56:29.213: E/AndroidRuntime(330): Caused by: java.lang.IllegalArgumentException: Unable to find native library: hellocpp
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.NativeActivity.onCreate(NativeActivity.java:187)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
12-08 00:56:29.213: E/AndroidRuntime(330):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
12-08 00:56:29.213: E/AndroidRuntime(330):  ... 11 more
12-08 00:56:34.912: I/Process(330): Sending signal. PID: 330 SIG: 9

:slight_smile: Thanks!

is the class package name in AndroidManifest.xml is right?
you should to check the native activity name and package is same as that in Manifest.xml

My AdroidManifest.xml:

please explain me

someone wants us to go crazy, it’s a puzzle?

I download cocos 3.0 alpha1, try to run TestCpp

manifest configChanges is wrong
External Tool Builder is missing

than, a catch stops the app

12-25 05:16:40.431: E / AndroidRuntime (31632): java.lang.RuntimeException: Unable to start activity ComponentInfo {org.cocos2dx.testcpp/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to find native library: testcpp

I have no words, why is this happening?

ok, I have read the instructions.

I forgot a little little thing

build the cocos

$ cd cocos2d-x/build
$ python ./android-build.py hellocpp