I am currently migrating our project from Ant to Android Studio. With corona enterprise 2016.2886, I have the project actually building an apk, and it will run on the device. I have setup the tasks in our build.gradle files to be identical with the example in the docs, with additions to build with the ndk. The resulting process is as follows:
cleanAssets -> generateLuaBytecodes (uses lua2c.sh) -> ndkBuild -> compileLua -> copyCoronaResources -> copyCoronaNativeLibs -> certifyBuild
When I try using CoronaEnterprise 2016.2904 or 2016.2906, however, the app crashes on startup with the following JNI-related error:
W/dalvikvm(31900): Invalid indirect reference 0x4006fcb4 in decodeIndirectRef E/dalvikvm(31900): VM aborting F/libc (31900): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 31900 (ageName.Removed)
The resulting memory dump references ‘/system/lib/libdvm.so’, ‘/data/data/com.PackageName.Removed/lib/libcorona.so’, and ‘/system/lib/libc.so’. I can post the full dump on request.
Any ideas on what might be different between these builds that would cause the crash?