Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18448] Android vendor dependency version has to be updated

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-02T05:05:26.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 4.1.0, Release 4.0.1
ComponentsAndroid
Labelsn/a
ReporterPraveen Innamuri
AssigneeHieu Pham
Created2015-01-27T18:53:15.000+0000
Updated2015-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.

Comments

  1. Hieu Pham 2015-05-12

    master PR: https://github.com/appcelerator/titanium_mobile/pull/6843
  2. Praveen Innamuri 2015-05-14

    This fix doesn't apply for 4.0.0 release ?
  3. Ingo Muschenetz 2015-05-21

    I think so. I've targeted it for 4.0.1
  4. Hieu Pham 2015-05-29

    4.0.X port: https://github.com/appcelerator/titanium_mobile/pull/6886
  5. Lokesh Choudhary 2015-05-29

    Verified the fix in 4.0.X & 4.1.0. In android package.json the vendor dependencies are
    "android sdk": ">=21 <=22",
    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

JSON Source