Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-5428

Android: Module native library files (*.so) only packaged on full build

    Details

      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

          Activity

            People

            • Assignee:
              billdawson Bill Dawson
              Reporter:
              billdawson Bill Dawson
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-4601
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code