[TIMOB-18448] Android vendor dependency version has to be updated
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-02T05:05:26.000+0000 |
Affected Version/s | Release 4.0.0 |
Fix Version/s | Release 4.1.0, Release 4.0.1 |
Components | Android |
Labels | n/a |
Reporter | Praveen Innamuri |
Assignee | Hieu Pham |
Created | 2015-01-27T18:53:15.000+0000 |
Updated | 2015-06-02T05:05:31.000+0000 |
Description
While trying to build an Android app onto device/emulator, the build consistently failed while packaging the app before it installs the app onto device/emulator.
Here is the command that fails to package the app before it is run.
C:\Users\Praveen Innamuri\Documents\Appcelerator_Studio_Workspace>C:\android-sdk-win\build-tools\20.0.0\aapt.exe "package" "-f" "-m" "-J" "C:\Users\Praveen Innamuri\Documents\Appce
lerator_Studio_Workspace\MingleSingle\build\android\gen" "-M" "C:\Users\Praveen Innamuri\Documents\Appcelerator_Studio_Workspace\MingleSingle\build\android\AndroidManifest.xml" "-A
" "C:\Users\Praveen Innamuri\Documents\Appcelerator_Studio_Workspace\MingleSingle\build\android\bin\assets" "-S" "C:\Users\Praveen Innamuri\Documents\Appcelerator_Studio_Workspace\
MingleSingle\build\android\res" "-I" "C:\android-sdk-win\platforms\android-16\android.jar" "-F" "C:\Users\Praveen Innamuri\Documents\Appcelerator_Studio_Workspace\MingleSingle\buil
d\android\bin\app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat" "-S" "C:\Users\PRAVEE~1\AppData\Local\Temp\115027-3748-13cvgfd/
res" "-S" "C:\Users\PRAVEE~1\AppData\Local\Temp\115027-3748-1nfk0ej/res"
Later we realized that only Android 4.1.2 is installed on the machine, though Android 5.x is the new minimum for SDK 3.6.0. Digging into further, looks the vendor dependencies for Android are not updated in SDK and that's the reason Studio didn't prompt to install Android 5.x when selected Titanium SDK is 3.6.x.
master PR: https://github.com/appcelerator/titanium_mobile/pull/6843
This fix doesn't apply for 4.0.0 release ?
I think so. I've targeted it for 4.0.1
4.0.X port: https://github.com/appcelerator/titanium_mobile/pull/6886
Verified the fix in 4.0.X & 4.1.0. In android package.json the vendor dependencies are
Closing Environment: Appc Studio : 4.0.1.201505282200 Ti SDK : 4.0.1.v20150529014212, 4.1.0.v20150529013634 CLI : 4.0.0 Alloy : 1.6.0 MAC Yosemite : 10.10.3 Appc npm : 4.0.0 Appc CLI : 4.0.1-rc Node: v0.10.37