{ "id": "155886", "key": "TIMOB-20613", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "17707", "name": "Release 5.3.0", "archived": false, "released": true, "releaseDate": "2016-06-04" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-22T17:38:28.000+0000", "created": "2016-03-22T06:30:28.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "51121", "type": { "id": "10020", "name": "Depends", "inward": "is dependent of", "outward": "depends on" }, "inwardIssue": { "id": "155323", "key": "TISTUD-8012", "fields": { "summary": "Studio needs to call \"appc run\" / \"ti build\" to build iOS/Android modules", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } }, { "id": "51297", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "159421", "key": "TIMOB-23174", "fields": { "summary": "Android NDK r11c unsupported because of missing RELEASE.txt", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-05-31T12:22:01.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Android native modules build is checking for a release.txt file to validate the Android NDK directory, but with the android NDK r11, {{release.txt}} file is removed.\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/node_modules/titanium-sdk/lib/android.js#L927\r\n\r\nHere is the log:\r\n\r\n\r\n{code:java}\r\nkondals-MacBook-Pro:module4 kondalkolipaka$ appc run --platform android --project-dir /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/module4/android --build-only\r\nAppcelerator Command-Line Interface, version 5.2.1-12\r\nCopyright (c) 2014-2016, Appcelerator, Inc. All Rights Reserved.\r\n \r\n3/18/2016, 2:39:42 PM\r\n \r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\n \r\nNode.js\r\n Node.js Version = 4.2.2\r\n npm Version = 2.14.7\r\n \r\nTitanium CLI\r\n CLI Version = 5.0.6\r\n \r\nTitanium SDK\r\n SDK Version = 5.3.0.v20160317110758\r\n SDK Path = /Users/kondalkolipaka/Library/Application Support/Titanium/mobilesdk/osx/5.3.0.v20160317110758\r\n Target Platform = android\r\n \r\nCommand\r\n /usr/local/bin/node /Users/kondalkolipaka/.appcelerator/install/5.2.1-12/package/node_modules/titanium/lib/titanium.js build run --platform android --project-dir /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/module4/android --config-file /var/folders/9n/xpk1tm596cbctmwyfhcqysfw0000gn/T/build-1458283177511.json --log-level info --no-banner --project-dir /Users/kondalkolipaka/development/workspaces/runtime-Titanium-360/module4/android\r\n \r\n\r\n2016-03-18T06:39:42.984Z | ERROR | An uncaught exception was thrown!\r\nCannot read property 'path' of null\r\n2016-03-18T06:39:42.986Z | ERROR | Cannot read property 'path' of null\r\n{code}\r\n\r\n*Workaround*: Manually create a {{release.txt}} file in the NDK home directory and run the build.\r\n\r\nStudio checks for ndk-build , ndk-gdb , build , prebuilt , platforms files/folders to validate the NDK. How about using the same here ?", "attachment": [], "flagged": false, "summary": "Android native modules build is getting failed with Android NDK r11", "creator": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "kkolipaka", "key": "kkolipaka", "displayName": "Kondal Kolipaka", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "380379", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Master PR: https://github.com/appcelerator/titanium_mobile/pull/7873\r\n5_3_X PR: https://github.com/appcelerator/titanium_mobile/pull/7874", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-03-22T16:52:58.000+0000", "updated": "2016-03-22T16:52:58.000+0000" }, { "id": "380381", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "To test, just run {{ti info -t android -o json}} and locate the {{ndk}} section. You can try with no NDKs, 1 NDK, or several NDKs.\r\n\r\nNote that if you have more than 1 NDK installed, it will only show the first NDK it found.\r\n\r\nI should point out that there was a bug where if you didn't have the {{android.ndkPath}} set, you didn't have the {{ANDROID_NDK}} environment variable set, and if the {{ndk-build}} executable was not in the system PATH, then it would scan {{/opt}}, {{/opt/local}}, {{/usr}}, {{/usr/local}}, and {{~}} looking for an Android SDK instead of and NDK. Whoops!", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-03-22T16:56:50.000+0000", "updated": "2016-03-22T16:56:50.000+0000" }, { "id": "380386", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "PRs merged.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-03-22T17:38:28.000+0000", "updated": "2016-03-22T17:38:28.000+0000" }, { "id": "381994", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nThe CLI now detects NDK r11c & the modules are built successfully.\r\n\r\nEnvironment:\r\nAppc Studio : 4.6.0.201604041329\r\nTi SDK : 5.3.0.v20160404105211\r\nTi CLI : 5.0.7\r\nAlloy : 1.8.5\r\nMAC El Capitan : 10.11.4\r\nAppc NPM : 4.2.5-2\r\nAppc CLI : 5.3.0-12\r\nNode: 4.2.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-04-06T22:26:53.000+0000", "updated": "2016-04-06T22:26:53.000+0000" }, { "id": "387165", "author": { "name": "evo", "key": "evo", "displayName": "Liam Potter", "active": true, "timeZone": "Europe/London" }, "updateAuthor": { "name": "evo", "key": "evo", "displayName": "Liam Potter", "active": true, "timeZone": "Europe/London" }, "created": "2016-05-31T10:56:46.000+0000", "updated": "2016-05-31T10:56:46.000+0000" }, { "id": "387169", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~evo], you are using Titanium SDK version 5.1.1.GA, the fix will be available in Titanium SDK version 5.3.0.GA.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-05-31T12:22:01.000+0000", "updated": "2016-05-31T12:22:01.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }