Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12794] Android: Cannot run Debug on Android with both the Android emulator open and device connected

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2013-08-07T05:59:22.000+0000
Affected Version/sRelease 3.0.2, Release 3.1.0
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroid-deployment, androidbuild, ay-verified, cb-verified, qe-3.1.0
ReporterFederico Casali
AssigneeChris Barber
Created2013-02-20T02:42:26.000+0000
Updated2017-03-20T22:31:18.000+0000

Description

Problem description

Issues running an App in Debug mode (either on device or on emulator) on Android, when the Android emulator is open and a device connected.

Steps to reproduce

- Have an Android device connected and recognized - Create a project in Studio and run in Debug mode on either the device or in the Android emulator (Studio allows to choose the target) Result: App is being installed and it runs, but eventually remains stuck at the splashscreen. Error log:
[INFO] Application installed. Launch from drawer on Home Screen
[INFO] Forwarding host port 9419 to device for debugging.
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.3.v20130219140159/android/builder.py", line 2412, in <module>
[ERROR]     builder.build_and_run(True, avd_id, device_args=device_args, debugger_host=debugger_host)
[ERROR]   File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.3.v20130219140159/android/builder.py", line 2246, in build_and_run
[ERROR]     self.sdk.run_adb(['forward', forwardPort, forwardPort])
[ERROR]   File "/Users/fcasali/Library/Application Support/Titanium/mobilesdk/osx/3.0.3.v20130219140159/android/androidsdk.py", line 290, in run_adb
[ERROR]     raise Exception(err)
[ERROR] Exception: error: more than one device and emulator
[ERROR] 
[ERROR] Application Installer abnormal process termination. Process exit value was 1
1. Remove the device and run in Debug mode on emulator Result: App runs in Debug mode as expected 2. Close the emulator and connect an Android device. Run in Debug mode. Result: App runs in Debug mode as expected

Comments

  1. Dustin Hyde 2013-02-20

    @Shalom: This appears to be an SDK ticket.
  2. Dustin Hyde 2013-02-20

    Moving to SDK.
  3. jithinpv 2013-03-15

    Issue reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4 Android Emulator: Android SDK version: 2.2 jithinpv
  4. Chris Barber 2013-08-07

    Dupe of TIMOB-12600.
  5. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source