[TIMOB-11223] Android Debugging: adb.exe hangs on push to device
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-11-30T00:45:19.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.0.0, Release 3.1.0, 2012 Sprint 24, 2012 Sprint 24 Core |
Components | Android |
Labels | debugger-android, qe-and100112, qe-port, triage |
Reporter | Clayton Headley |
Assignee | Bill Dawson |
Created | 2012-10-01T21:44:24.000+0000 |
Updated | 2013-01-17T10:26:03.000+0000 |
Description
While debugging on device on Windows 7, the build process gets to Installing application on device, calls the adb.exe then hangs. Attempting to use the same command from the command line returns the following:
error: device not found
- waiting for device -
Using the same .apk file and the -d option does correctly install the application to the device.
Steps to reproduce:
1. Create a new Titanium Project for Android on Windows 7.
2. Debug on Device (App Explorer > Debug Dropdown > Android Device)
Expected result:
Built application should be uploaded quickly to the Android device.
Actual result:
Studio hangs waiting for the upload to finish.
Attachments
File | Date | Size |
---|---|---|
build.log | 2012-11-29T20:32:01.000+0000 | 17018 |
device_not_found.txt | 2012-11-29T08:59:28.000+0000 | 7308 |
@Clayton: Which devices does this occur with?
@Dustin - This was with my Samsung Galaxy Note, I'll try to recreate it with my Galaxy SIII and see if I can reproduce as well.
Verified with Titanium Studio, build: 3.0.0.201211281826 and mobilesdk-3.0.0.v20121128173200 on Windows 8. I am able to recreate this issue using LG optimus P970 android device.Console logs attached(device_not_found.txt)
Verified on Samsung Galaxy nexus with android 4.0.4 and LG P970 with android 2.2.2 & Samsung GT-S5302 using OS: Windows 7 Titanium Studio: 3.0.0.201211281826 Titanium SDK: 3.0.0.v20121128151109 Issue occurs with all three devices.
@Everyone, does the same happen when you do Run on device ?
@Max, I only see the error when debugging on device. Run on Device works fine.
@Clayton, could you attach log for Run on device so I could compare. Thanks!
Attached build log for run on device.
Thanks Clayton, but the log is for different project. I want to see the same as failing for debug on device.
I have a feeling this could be about Windows command line not able to handle an empty value. See how we call it from Studio:
Note the empty param before "adb:9419". Still investigating.
Here is the best I can give you (had to use an older version of the SDK as the newest is giving me a new error I'm logging. Debug on Device:
Run on Device:
It's okay, I have the problem nailed down.
PR for master branch: https://github.com/appcelerator/titanium_mobile/pull/3498
PR for 3_0_X: https://github.com/appcelerator/titanium_mobile/pull/3500
Closing as fixed. Tested and verified with: Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.0.GA Windows 7 Ultimate Device: HTC Android Version 4.0.3