As in the title,
Do you have any known problems/solutions for that? It crashes just in startup and i have to force close it.
It crashes on my android mobile phone only, but works on the emulators. ( I have version 2.3.7, for emulators i use 2.3.1 and tried 2.3.3 too. Both did work. )
Debug logs:
Thread [<1> main] (Suspended (exception RuntimeException))
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1768
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 1784
ActivityThread.access$1500(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 123
ActivityThread$H.handleMessage(Message) line: 939
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 130
ActivityThread.main(String[]) line: 3835
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 507
ZygoteInit$MethodAndArgsCaller.run() line: 864
ZygoteInit.main(String[]) line: 622
NativeStart.main(String[]) line: not available [native method]
My AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" package="com.motionstruct.atests">
<uses-sdk android:minSdkVersion="9" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.WAKE_LOCK"></uses-permission>
<application android:label="@string/app_name"
android:hasCode="false" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:debuggable="false" android:icon="@drawable/icon">
<activity android:name="android.app.NativeActivity"
android:label="@string/app_name"
android:configChanges="orientation|keyboardHidden"
android:screenOrientation="portrait">
<meta-data android:name="android.app.lib_name"
android:value="template" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
The project is placed under templates folder.
Also, i am sure it's not the template.cpp code, as i tried to run it with agk::Sync() only, and it didn't work either.
------------ADDED-----------------
I've just found out i should have my project in /apps/ folder. But now, when i do, i cannot compile it with NDK. There's one error that always appears there:
arm-linux-androideabi-g++.exe: ./obj/local/armeabi/libandroid_native_app_glue.a: No such file or directory
make: *** [obj/local/armeabi/libtemplate.so] Error 1
With the exception that it's not always libtemplate.so, can be Core.o and so on.