Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-5434

Android module auto upgrade of manifest causes module to fail loading and app to crash

    Details

    • Type: New Feature
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: None
    • Component/s: Appcelerator CLI
    • Labels:
    • Environment:

      SDK 7.0.0.GA
      MAC OS X

      Description

      When running `appc run -p android --build-only -l trace` to compile an Android module written for versions earlier than SDK 7.0.0.GA, the CLI offers to upgrade the module. When choosing "yes" to upgrade the module the CLI updates the android module manifest file.

      The CLI updates the manifest and setting `minsdk: 7.0.0`. While compilation completes successfully, when the module is put in to an app it is causing the app to crash on load with an error message that the `so` file of the module cannot be found:

      `couldn't find "libti.ga.so"; Titanium 7.0.0,2017/12/05 13:30,undefined`

      This is because the `minsdk` is set to an incorrect version, and should be `minsdk: 7.0.0.GA`.
      When manually changing the version, cleaning build and libs folder and recompiling the error message goes away.

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain (Inactive)
              Reporter:
              developer82 Ophir Oren
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code