{ "id": "170573", "key": "AC-5434", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-12-10T21:09:44.000+0000", "created": "2017-12-10T20:08:59.000+0000", "labels": [ "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-12-11T07:46:34.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" } ], "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.\r\n\r\nThe 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:\r\n\r\n`couldn't find \"libti.ga.so\"; Titanium 7.0.0,2017/12/05 13:30,undefined`\r\n\r\nThis is because the `minsdk` is set to an incorrect version, and should be `minsdk: 7.0.0.GA`.\r\nWhen manually changing the version, cleaning build and libs folder and recompiling the error message goes away.", "attachment": [], "flagged": false, "summary": "Android module auto upgrade of manifest causes module to fail loading and app to crash", "creator": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 7.0.0.GA\r\nMAC OS X", "comment": { "comments": [ { "id": "431907", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The libs/ directory and build/ directory cleanup was a general issue that could happen to builds when changing api-levels. TIMOB-25592 already takes care of this :).", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-10T21:09:45.000+0000", "updated": "2017-12-10T21:09:45.000+0000" }, { "id": "431908", "author": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "@Hans - This is not the same bug.\r\nTIMOB-25592 is about the build directory while this one is about the minsdk version that is being wrotten by the CLI upgrade.", "updateAuthor": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T04:31:21.000+0000", "updated": "2017-12-11T04:31:21.000+0000" }, { "id": "431909", "author": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please re-open", "updateAuthor": { "name": "developer82", "key": "developer82", "displayName": "Ophir Oren", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-11T04:32:04.000+0000", "updated": "2017-12-11T04:32:04.000+0000" }, { "id": "431911", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thanks for updating the initial description, but this is not an issue. Many other working modules, even core-modules like [Ti.Map|https://github.com/appcelerator-modules/ti.map/blob/master/android/manifest#L19] use \"7.0.0\" and the app handles it fine. The error about the \"so\" files are because the libs directory does not get cleaned properly without flushing the directory before.\r\n\r\nIn detail, this is handled by [this 10 lines|https://github.com/appcelerator/titanium_mobile/pull/9671/files#diff-e409a7861efa1e711ec49a7ff79beee7R415] that delete the directory, recreate it and pre-create the directories needed.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-11T07:46:34.000+0000", "updated": "2017-12-11T07:46:34.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }