{ "id": "172174", "key": "AC-5877", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2018-12-10T16:45:03.000+0000", "created": "2018-09-05T13:00:42.000+0000", "labels": [ "Android", "iOS," ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-12-10T16:48:40.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Following the guide here [https://www.appcelerator.com/blog/2018/06/patch-titanium-sdk-using-cherry-picking/|https://www.appcelerator.com/blog/2018/06/patch-titanium-sdk-using-cherry-picking/], I'm getting an error when running the last command {{node scons.js cleanbuild}}. The error I see is:\r\n\r\n{panel:borderStyle=dashed}\r\nBUILD SUCCESSFUL\r\nTotal time: 2 seconds\r\n\r\npath.js:28\r\n throw new TypeError('Path must be a string. Received ' + inspect(path));\r\n ^\r\n\r\nTypeError: Path must be a string. Received null\r\n at assertPath (path.js:28:11)\r\n at Object.join (path.js:1246:7)\r\n at AndroidSDK.getPlatformDir (/Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/build/androidsdk.js:64:24)\r\n at Android.build (/Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/build/android.js:41:28)\r\n at /Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/build/scons-cleanbuild.js:95:26\r\n at /Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/node_modules/async/dist/async.js:3047:16\r\n at replenish (/Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/node_modules/async/dist/async.js:982:17)\r\n at /Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/node_modules/async/dist/async.js:986:9\r\n at eachLimit$1 (/Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/node_modules/async/dist/async.js:3133:22)\r\n at Object. (/Users/jonasfunk/Dropbox/Appcelerator_Studio_Workspace/ti-sdk/node_modules/async/dist/async.js:1016:16)\r\n{panel}\r\n\r\nNode/NDK installed:\r\n{panel:borderStyle=dashed}\r\n✓ node installed (v8.9.4)\r\n✓ npm installed (v6.4.1)\r\n✓ ndk installed (12.1.2977051)\r\n✓ ndk-build installed (/Users/jonasfunk/android-ndk-r12b/ndk-build)\r\n{panel}", "attachment": [], "flagged": false, "summary": "Unable to compile Ti-SDK with scons.js", "creator": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "441362", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "It looks like, although installed, the NDK path may not be known by the CLI. Make sure to set it in the Ti config (either via CLI with {{ti config android}} or by editing {{~/.titanium/config.json}}), e.g.:\r\n{code:json}\r\n\t\"android\": {\r\n\t\t\"sdkPath\": \"/opt/android-sdk/\",\r\n\t\t\"ndkPath\": \"/opt/android-sdk/ndk-bundle\"\r\n\t},\r\n{code}", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-05T19:48:23.000+0000", "updated": "2018-09-05T19:48:23.000+0000" }, { "id": "441365", "author": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the feedback. Should note, that I just updated the NDK to r17b, as someone suggested that on TiSlack. Had unsuccessfully tried with r12b before that. Tried setting the NDK path again, via {{appc ti setup}}. Checked {{~/.titanium/config.json}}, and it seems correct:\r\n{code:borderStyle=dashed}\r\n\"android\": {\r\n\t\t\"sdkPath\": \"/Users/jonasfunk/android-sdk\",\r\n\t\t\"ndkPath\": \"/Users/jonasfunk/android-ndk-r17b\",\r\n\t}\r\n{code}\r\n\r\nStill no luck - same error.\r\n", "updateAuthor": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-05T20:10:21.000+0000", "updated": "2018-09-05T20:10:21.000+0000" }, { "id": "442805", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Make sure you have the required environment variables set. The scripts uses {{ANDROID_SDK}} to detect your Android SDK. For example, if you only have {{ANDROID_HOME}} set, run {{ANDROID_SDK=$ANDROID_HOME ./scons.js cleanbuild}} (or define ANDROID_SDK in your bash profile).", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-10-19T18:37:51.000+0000", "updated": "2018-12-03T10:26:15.000+0000" }, { "id": "444064", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, [~jonasfunk], please follow up on the status of your issue? Did you tried following Jan's guide? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-11-29T23:26:55.000+0000", "updated": "2018-11-29T23:26:55.000+0000" }, { "id": "444132", "author": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment variables has been set so that's not the issue. I haven't tried building since October, as the issue I wanted to fix, has later been fixed by an SDK update. ", "updateAuthor": { "name": "jonasfunk", "key": "jonasfunk", "displayName": "Jonas Funk Johannessen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-12-03T08:34:32.000+0000", "updated": "2018-12-03T08:34:32.000+0000" }, { "id": "444139", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "Good to hear you got the fix. For future reference, it may still have been an issue with environment variables. I had a mixup in my previous comment and updated it accordingly.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-12-03T10:26:18.000+0000", "updated": "2018-12-03T10:26:18.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }