{ "id": "112555", "key": "TIMOB-13483", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2013-08-07T07:13:19.000+0000", "created": "2013-04-08T23:13:36.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "androidbuild", "ay-verified", "cb-verified" ], "versions": [ { "id": "14164", "description": "Release 3.0.2", "name": "Release 3.0.2", "archived": true, "released": true, "releaseDate": "2013-02-19" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [ { "id": "29375", "type": { "id": "10000", "name": "Blocks", "inward": "is blocked by", "outward": "blocks" }, "inwardIssue": { "id": "91507", "key": "TIMOB-9028", "fields": { "summary": "CLI: \"build\" command for Android apps", "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": "Critical", "id": "1" }, "issuetype": { "id": "6", "description": "gh.issue.epic.desc", "name": "Epic", "subtask": false } } } }, { "id": "30687", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "109242", "key": "TIMOB-12600", "fields": { "summary": "CLI: building for Android device while the emulator is open generates a wrong Error Message", "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": "27597", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "112557", "key": "TIMOB-13484", "fields": { "summary": "CLI: App doesn't automatically run on Android device if also the emulator is open", "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": "2017-03-21T22:44:05.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": "h5. Problem description\r\nWhen building for Android Device with also the Android simulator open, a misleading bad error message is displayed.\r\n\r\nh5. Steps to reproduce\r\n1. Connect an Android device, create a default new project and build for Android simulator\r\n2. Build for Android real device (both from Studio and CLI)\r\n\r\nResult:\r\n1. App build and automatically run as expected on the simulator\r\n2. App build and is actually correctly installed on the real device. However, the App it's not starting up automatically on device and a misleading bad error message is displayed on the console log.\r\n\r\n{code}\r\n[DEBUG] Waiting for device to be ready ...\r\n[TRACE] adb devices returned 2 devices/emulators\r\n[DEBUG] Device connected... (waited 0 seconds)\r\n[DEBUG] waited 0.019870 seconds on emulator to get ready\r\n[INFO] Installing application on device\r\n[DEBUG] /Users/fcasali/tools/android-sdk-mac_x86/platform-tools/adb -d install -r /Users/fcasali/Documents/Titanium_Studio_Workspace2/testProject/build/android/bin/app.apk\r\n[INFO] Application installed. Launch from drawer on Home Screen\r\n[INFO] Launching appliation on device.\r\nerror: more than one device and emulator\r\n[ERROR] Project failed to build after 29s 590ms\r\n{code}\r\n\r\nBehavior reproducible with latest Appcelerator and Titanium Studio version.\r\nIt was not reproducible building from Studio 3.0-GA version - however it was reproducible building from console with CLI version 3.0.24-GA. \r\n", "attachment": [], "flagged": false, "summary": "CLI: bad error message when building for Android with both device and emulator open", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "CLI versions 3.0.24 and 3.1.0-cr\r\nTiSDK 3.1.0.v20130405170202\r\nAppcelerator Studio 3.1.0.201304052347\r\nTitanium Studio 3.1.0.201304051530\r\nAndroid OS\r\n", "comment": { "comments": [ { "id": "246560", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I wonder if \"adb devices\" is returning both the emulator and the device and the build script gets confused which one to use?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-04-09T00:52:25.000+0000", "updated": "2013-04-09T00:52:25.000+0000" }, { "id": "265302", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Dupe of TIMOB-12600.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-08-07T07:13:19.000+0000", "updated": "2013-08-07T07:13:19.000+0000" }, { "id": "414614", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate with reference to the above comments.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T22:44:05.000+0000", "updated": "2017-03-21T22:44:05.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }