Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15640] Android : Specifying "--android-sdk" with a trailing slash gives error invalid device id on alternating runs

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-11-07T01:36:20.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 23, 2013 Sprint 23 Core, Release 3.2.0
ComponentsAndroid
Labelsqe-3.2.0
ReporterLokesh Choudhary
AssigneeChris Barber
Created2013-11-01T18:37:52.000+0000
Updated2013-11-09T01:11:31.000+0000

Description

Description:

1.Build for device an android app using the CLI. Make sure you have --android-sdk with trailing slash. e.g:
ti build -p android --android-sdk /Users/lokeshchoudhary/Desktop/android-sdk-macosx/ -d /Users/lokeshchoudhary/Desktop/workspace_4_6_13/default_app -T device -C 0c1aaa71

Actual Result:

1.We get error:
[ERROR] Invalid "--device-id" value "0c1aaa71"

On digging further I noticed one more behaviour:

1.Run the same command as above again & it will build normally. So, to summarize it gives the device error on every alternating runs

Expected Result:

1.We should not get any errors & the app should build successfully every time.

Comments

  1. Chris Barber 2013-11-06

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/4919
  2. Lokesh Choudhary 2013-11-09

    Verified the fix. Running the build does not give us the invalid "--device-id" error. Closing. Environment: Appcel Studio : 3.2.0.201311080232 Ti SDK : 3.2.0.v20131108155642 Mac OSX : 10.8.5 Alloy : 1.3.0 CLI - 3.2.0 Device: Samsung Galaxy S4 running android 4.2.2

JSON Source