{ "id": "168622", "key": "TIMOB-24897", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-04-12T16:36:50.000+0000", "created": "2017-06-27T01:32:18.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "qe-6.1.1" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" }, { "id": "19333", "description": "Patch release for important items that did not make it into 6.0.3", "name": "Release 6.0.4", "archived": false, "released": true, "releaseDate": "2017-04-27" }, { "id": "19572", "description": "Important fixes for 6.1.0", "name": "Release 6.1.1", "archived": false, "released": true, "releaseDate": "2017-06-16" } ], "issuelinks": [], "assignee": { "name": "ybanev", "key": "ybanev", "displayName": "Yordan Banev", "active": true, "timeZone": "Europe/Athens" }, "updated": "2018-04-12T16:36:51.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" }, { "id": "10207", "name": "Tooling" } ], "description": "*NOTE: This might be an user error, gonna ask other team members to try on their side as well, to confirm. Seeing this with SDK 6.1.0.GA & 6.0.4.GA as well.*\r\n\r\nh5. Steps to reproduce:\r\n1. Create a module using studio or CLI.\r\n2. CD into the android folder.\r\n3. Run {{appc run -l trace}} or {{appc run -p android -l trace}}.\r\n\r\nh5. Actual results:\r\n1. The module build fails with error below:\r\n{code}\r\n[DEBUG] Running AAPT command: /Users/lchoudhary/Desktop/android-sdk-macosx/build-tools/26.0.0-rc2/aapt package -f -I /Users/lchoudhary/Desktop/android-sdk-macosx/platforms/android-23/android.jar -M /Users/lchoudhary/Desktop/lokimod/android/build/intermediates/manifests/aapt/AndroidManifest.xml -S /Users/lchoudhary/Desktop/lokimod/android/build/intermediates/res/merged -m -J /Users/lchoudhary/Desktop/lokimod/android/build/generated/r --custom-package com.app.lokimod --non-constant-id -0 apk --output-text-symbols /Users/lchoudhary/Desktop/lokimod/android/build/intermediates/bundles --no-version-vectors --extra-packages android.support.v7.appcompat:android.support.v7.cardview:ti.modules.titanium.ui\r\n[INFO] Packaging the module\r\n[INFO] Creating module zip\r\n[INFO] Writing module zip: /Users/lchoudhary/Desktop/lokimod/android/dist/com.app.lokimod-android-1.0.0.zip\r\n[DEBUG] Staging module project at /var/folders/pk/k370szc955l_9w7hsb9nfvg00000gq/T/ti-android-module-build-117526-2710-lv5qdk.c3ch5pcik9\r\n2017-06-27T01:24:29.868Z | ERROR | An uncaught exception was thrown!\r\nspawn ti ENOENT\r\n2017-06-27T01:24:29.869Z | ERROR | spawn ti ENOENT\r\n2017-06-27T01:24:29.869Z | TRACE | Error: spawn ti ENOENT\r\n at exports._errnoException (util.js:1018:11)\r\n at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)\r\n at onErrorNT (internal/child_process.js:367:16)\r\n at _combinedTickCallback (internal/process/next_tick.js:80:11)\r\n at process._tickCallback (internal/process/next_tick.js:104:9)\r\n---------------------------------------------\r\n at ChildProcess.spawn (internal/child_process.js:301:13)\r\n at exports.spawn (child_process.js:378:9)\r\n at runTiCommand (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:1839:15)\r\n at AndroidModuleBuilder. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:1873:4)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3816:26\r\n at replenish (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:982:17)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:986:9\r\n at eachOfLimit (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:1011:22)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:1016:16\r\n at _parallel (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3815:5)\r\n at Object.series (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:4664:3)\r\n at Object.series (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/async.js:62:8)\r\n at AndroidModuleBuilder.runModule (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:1934:13)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3816:26\r\n at replenish (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:982:17)\r\n---------------------------------------------\r\n at AndroidModuleBuilder.tasks (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:1676:15)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3816:26\r\n at replenish (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:982:17)\r\n at iterateeCallback (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:967:17)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:944:16\r\n at WriteStream. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3821:13)\r\n at apply (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:21:25)\r\n at WriteStream. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:56:12)\r\n at emitNone (events.js:91:20)\r\n at WriteStream.emit (events.js:185:7)\r\n at fs.js:2051:14\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at /Users/lchoudhary/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/fs-extra/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at /Users/lchoudhary/.appcelerator/install/6.2.2/package/node_modules/tar.gz/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:43:10\r\n---------------------------------------------\r\n at AndroidModuleBuilder.generateModuleJar (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:1632:20)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3816:26\r\n at replenish (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:982:17)\r\n at iterateeCallback (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:967:17)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:944:16\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3821:13\r\n at apply (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:21:25)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:56:12\r\n at AndroidModuleBuilder. (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:1613:4)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3816:26\r\n at replenish (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:982:17)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:986:9\r\n at eachOfLimit (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:1011:22)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:1016:16\r\n at _parallel (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3815:5)\r\n---------------------------------------------\r\n at Object.run (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/node-appc/lib/subprocess.js:59:8)\r\n at AndroidModuleBuilder.generateModuleRClassFile (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/android/cli/commands/_buildModule.js:586:20)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3816:26\r\n at replenish (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:982:17)\r\n at iterateeCallback (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:967:17)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:944:16\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:3821:13\r\n at apply (/Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:21:25)\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/async/dist/async.js:56:12\r\n at /Users/lchoudhary/Library/Application Support/Titanium/mobilesdk/osx/6.1.1.v20170626160851/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at /Users/lchoudhary/.appcelerator/install/6.2.2/package/node_modules/titanium/node_modules/fs-extra/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at /Users/lchoudhary/.appcelerator/install/6.2.2/package/node_modules/tar.gz/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at /Users/lchoudhary/.appcelerator/install/6.2.2/package/node_modules/tar/node_modules/fstream/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at /Users/lchoudhary/.appcelerator/install/6.2.2/package/node_modules/fs-extra/node_modules/graceful-fs/graceful-fs.js:43:10\r\n at FSReqWrap.oncomplete (fs.js:123:15)\r\n{code}\r\n\r\nh5. Expected Results:\r\n1. The module should complete successfully.", "attachment": [], "flagged": false, "summary": "Android : Building android module from CLI fails with error 'spawn ti ENOENT'", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 4.9.0.201705302345\r\nSDK Ver: 6.1.1.v20170626160851, 6.1.0.GA, 6.0.4.GA\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.9\r\nAppc CLI: 6.2.2\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.9.11\r\nNode Ver: 6.10.1\r\nJava Ver: 1.8.0_101\r\n", "comment": { "comments": [ { "id": "436836", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes [~ybanev].", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-04-12T16:36:06.000+0000", "updated": "2018-04-12T16:36:06.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }