Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-5428] Android: Module native library files (*.so) only packaged on full build

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-10-05T13:04:13.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-40, Release 1.8.0
ComponentsAndroid
Labelsjni, module, modules, ndk, stage
ReporterBill Dawson
AssigneeBill Dawson
Created2011-10-04T14:00:55.000+0000
Updated2013-12-26T13:56:27.000+0000

Description

If a module is being used by an application and that module has native library files in it (libs/armeabi/*.so), those library files are properly packaged into the app's .apk file only when a full build (i.e.,the first build) is done. Not when incremental builds are done. This leads to the app crashing when it tries to access anything in the module that calls into the native library. Reproduce: * Download and unzip the timob5428.zip here. * Import the project into Titanium Studio. * Build/release to emulator or device. * When the app loads you should see a label that says "Hello from JNI, My Friend!". That means it has successfully loaded a native library (.so file) that contains a method named stringFromJNI. * Build/release the app again without making any changes. This time it will crash when it's loading. Sample stack trace: http://pastie.org/2640420

Attachments

FileDateSize
timob5428.zip2011-10-04T15:01:02.000+00002337931

Comments

  1. Bill Dawson 2011-10-04

    Pull request ready: https://github.com/appcelerator/titanium_mobile/pull/524
  2. Alan Vaghti 2011-10-06

    Closing. Fix verified on Nexus One 2.2.2 with SDK 1.8.0.v20111006001414
  3. ahmet mecid kaya 2013-12-26

    Hello, When I build my titanium module I did not get any error and return succesfull.But when I call in my android app, it doesnt open. Then I saw that my module doesnt create .so files How can i solve that ? Thanks

JSON Source