{ "id": "115785", "key": "AC-2527", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-06-11T22:58:19.000+0000", "created": "2013-06-11T15:50:10.000+0000", "labels": [ "android", "defect" ], "versions": [], "issuelinks": [ { "id": "29509", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "106319", "key": "TIMOB-12034", "fields": { "summary": "CLI: Building for android with '-b' -build only flag starts the daemon & waits for the device after building the app", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "29508", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "109747", "key": "TIMOB-12745", "fields": { "summary": "CLI : CLI 'waits for the device' even though the build only flag is specified in the command for android", "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": "Medium", "id": "3" }, "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-03-08T07:41:35.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": "14552", "name": "Appcelerator CLI", "description": "Please enter tickets related to Tooling and the CLI here" }, { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "I am trying to use ti build to build test APKs via continuous integration/Jenkins. I am using this incantation:\r\n\r\n{code}ti build -p android --target device --build-only --android-sdk=/Library/Frameworks/Android/android-sdk{code}\r\n\r\nThe tool builds an apk which is good. But the problem is that after it finishes building, it tries to install/launch the application and the process hangs. Sometimes I get lucky and the adb process times-out. But other times it hangs forever which is bad for an automated build machine.\r\n\r\n{code}\r\n\u001b[32m[INFO] \u001b[39m: \b\b \b Launching application on device: \u001b[36m/Library/Frameworks/Android/android-sdk/platform-tools/adb \"-d\" \"shell\" \"am\" \"start\" \"-a\" \"android.intent.action.MAIN\" \"-c\" \"android.intent.category.LAUNCHER\" \"-n\" \"com.foo.mobile.got/.GotActivity\" \"-f\" \"0x10200000\"\u001b[39m\r\n* daemon not running. starting it now on port 5037 *\r\n* daemon started successfully *\r\n\u001b[31m[ERROR] \u001b[39m: \u001b[31m\b\b \bInstall app failed with exit code 255\r\n\u001b[39m\r\n{code}\r\n\r\nWhen using the build-only switch, I expect that I don't need to have a device plugged in and it won't try to install/run on a device.", "attachment": [], "flagged": false, "summary": "CLI: Building for android device with --build-only still tries to install and launch application", "creator": { "name": "ewing", "key": "ewing", "displayName": "Eric Wing", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewing", "key": "ewing", "displayName": "Eric Wing", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OS X 10.8.4, Titanium 3.1.1", "comment": { "comments": [ { "id": "257278", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Eric,\r\n\r\nI'm going to close this as duplicate of TIMOB-12034 and TIMOB-12745. Please watch those issues instead. I'll bump TIMOB-12034 at least to see if there's any update.\r\n\r\nThanks.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-11T22:58:19.000+0000", "updated": "2013-06-11T22:58:19.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }