{ "id": "137306", "key": "AC-1299", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2015-09-17T06:27:39.000+0000", "created": "2014-09-27T08:13:55.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:42.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": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "When trying to run Android app onto emulator or device I get\r\n\r\n{code}\r\n[INFO] : Installing apk: ***[CUT]***.apk\r\n[ERROR] Application Installer abnormal process termination. Process exit value was 8\r\n{code}\r\n\r\nFrom the command line I can get more info:\r\n\r\n{code}\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\n has no method 'indexOf'\r\n at /home/maurix/.titanium/mobilesdk/linux/3.3.0.GA/android/cli/hooks/run.js:189:20\r\n{code}\r\n\r\nThe output of \"adb shell\" is actually an object rather than a string, so \"indexOf\" fails. I fixed it locally with this patch:\r\n\r\n{code:diff}\r\n--- /home/maurix/.titanium/mobilesdk/linux/3.3.0.GA/android/cli/hooks/run.js.orig\t2014-09-27 09:55:11.286859250 +0200\r\n+++ /home/maurix/.titanium/mobilesdk/linux/3.3.0.GA/android/cli/hooks/run.js\t2014-09-27 09:55:29.710896714 +0200\r\n@@ -186,7 +186,8 @@\r\n \r\n \t\t\t\t\t\t(function installApp() {\r\n \t\t\t\t\t\t\tadb.shell(device.id, 'ps', function (err, output) {\r\n-\t\t\t\t\t\t\t\tif (output.indexOf('system_server') === -1) {\r\n+\t\t\t\t\t\t\tconsole.log(output, typeof(output), output.toString());\r\n+\t\t\t\t\t\t\t\tif (output.toString().indexOf('system_server') === -1) {\r\n \t\t\t\t\t\t\t\t\tlogger.trace(__('Package manager not started yet, trying again in %sms...', retryInterval));\r\n \t\t\t\t\t\t\t\t\tintervalTimer = setTimeout(installApp, retryInterval);\r\n \t\t\t\t\t\t\t\t\treturn;\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Cannot run app onto Android emulator or device", "creator": { "name": "maurix", "key": "maurix", "displayName": "Maurizio Pinotti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "maurix", "key": "maurix", "displayName": "Maurizio Pinotti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Debian jessie 64bit\r\nAndroid SDK tools 23.0.2\r\nTitanium SDK 3.3.0.GA\r\nOpenJDK 7u65-2.5.2-4 64bit", "comment": { "comments": [ { "id": "361679", "author": { "name": "ahossain", "key": "ahossain", "displayName": "Amimul Hossain", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, \r\n\r\nAs Titanium is obsolete use Appcelerator studio instead. Follow the instruction [here|https://web.appcelerator.com/product/studio] to download the latest Appcelerator studio. Also, follow the instruction [here|https://web.appcelerator.com/product/cli] to install CLI, SDK. \r\n\r\n\r\nThanks.", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-08-30T10:59:51.000+0000", "updated": "2015-09-17T06:27:27.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }