Project: titanium
Issue TIMOB-18715: CLI: Build errors out if the SDK version in the tiapp.xml & the SDK selected in CLI are different
h5.Steps to reproduce: 1. Make sure the SDK version in your tiapp.xml & the SDK selected in CLI are different. 2. Try to build the app. h5.Actual Result: 1. The build errors out after the "Forking correct SDK command". {code} Lokeshs-MacBook-Pro:mapv2ModuleTest lokeshchoudhary$ ti build -p android -T emulator Titanium Command-Line Interface, CLI version 4.0.0-alpha, Titanium SDK version 4.0.0.v20150317234215 Copyright (c) 2012-2015, Appcelerator, Inc. All Rights Reserved. Please report bugs to http://jira.appcelerator.org/ [WARN] [WARN] Android Build Tools 22 are too new and may or may not work with Titanium. [WARN] If you encounter problems, select a supported version with: [WARN] ti config android.buildTools.selectedVersion ##.##.## [WARN] where ##.##.## is a version in /Users/lokeshchoudhary/Desktop/android-sdk-macosx/build-tools that is <=21.x [INFO] tiapp.xml set to 3.5.1.GA, but current Titanium SDK set to 4.0.0.v20150317234215 [INFO] Forking correct SDK command: "/usr/local/bin/node" "/usr/local/bin/ti" "build" "--sdk" "3.5.1.GA" "--config-file" "/Users/lokeshchoudhary/.titanium/config.json" "--platform" "android" "--project-dir" "/Users/lokeshchoudhary/Desktop/workspaces/new_workspace/mapv2ModuleTest" "--log-level" "trace" "--android-sdk" "/Users/lokeshchoudhary/Desktop/android-sdk-macosx" "--target" "emulator" [ERROR] Error {code} h5.Expected Result: 1. The build should not fail & the app should build successfully.
Story points: 3