Hi,
I never tried android project before, I can build and run Urho3D’s samples on the android phone according to the document, but I don’t know how to run my own standalone project on the android phone.
I simply copied the subdirectory of ‘Android’ to my own project, and generate project with cmake_android.sh, then built the project, there are no errors in the ‘android update project’ and ‘make’ steps, but when I run the last step ‘ant debug’, there are errors:
BUILD FAILED
/Users/nob/NVPACK/android-sdk-macosx/tools/ant/build.xml:649: The following error occurred while executing this line:
/Users/nob/NVPACK/android-sdk-macosx/tools/ant/build.xml:694: null returned: 1
By google search, it says that I need a clean project, so I deleted the whole project and tried again, this time the issue disappeared, I can get an apk file now.
But when I installed the apk file to the android phone with ‘ant installed myown.apk’, it always terminated immediately when launched.
I tried to delete all useful codes to let the app do nothing, but it still crashes.
Do I need to do something else?