Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18934] Android: Failed to package application if API Level 21 not installed. Process exit value was 1

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2015-05-29T00:51:52.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 4.1.0, Release 4.0.1
ComponentsAndroid
Labelsfaild, package
ReporterShuo Liang
AssigneeIngo Muschenetz
Created2015-05-21T07:47:34.000+0000
Updated2015-05-29T20:47:34.000+0000

Description

Customers recently upgraded my Appcelerator studio to 4.0.. After that they are facing problems to run my app on a android device. Get the following error:
[INFO] :   Packaging application: C:\Program Files\Android\android-sdk-windows\build-tools\21.1.2\aapt.exe "package" "-f" "-m" "-J" "G:\Projects\Cheetah\mscripts-application\build\android\gen" "-M" "G:\Projects\Cheetah\mscripts-application\build\android\AndroidManifest.xml" "-A" "G:\Projects\Cheetah\mscripts-application\build\android\bin\assets" "-S" "G:\Projects\Cheetah\mscripts-application\build\android\res" "-I" "C:\Program Files\Android\android-sdk-windows\platforms\android-20\android.jar" "-F" "G:\Projects\Cheetah\mscripts-application\build\android\bin\app.ap_" "--auto-add-overlay" "--extra-packages" "ti.modules.titanium.ui:android.support.v7.appcompat:com.google.android.gms" "-S" "C:\Users\DNANDA~1\AppData\Local\Temp\115421-14124-1m3ldk9/res" "-S" "C:\Users\DNANDA~1\AppData\Local\Temp\115421-14124-11nyo91/res"
[ERROR] :  Failed to package application:
TRACE  | titanium exited with exit code 1
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Attached necessary info.

Attachments

FileDateSize
log file.txt2015-05-21T07:59:35.000+00003430953
ti info.txt2015-05-21T07:59:30.000+000017718
ti setup check.txt2015-05-21T07:59:29.000+00003744

Comments

  1. Ingo Muschenetz 2015-05-21

    [~sliang0904] Can you please attach the full build log? Since this does work for others, my expectation is that there is a configuration issue. Possible items:

    We are requiring API level 21 with 4.0.0. TIMOB-17357

    I think the true issue is TIMOB-18448. In that, they need to make sure they have API level 21 installed.

  2. Ingo Muschenetz 2015-05-21

    [~bhatfield] we should make sure this is prominent in the release notes. [~fokkezb] [~emerriman] [~rtlechuga] any additional thoughts?
  3. Ingo Muschenetz 2015-05-21

    FWIW, this is confirmed by the installed SDKs:
        10) android-17
           Name                      = Android 4.2.2
           API Level                 = 17
           Revision                  = 2
           Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
           ABIs                      = armeabi-v7a
           Path                      = C:\Program Files\Android\android-sdk-windows\platforms\android-17
         11) android-19
           Name                      = Android 4.4.2
           API Level                 = 19
           Revision                  = 3
           Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
           ABIs                      = no ABIs.
           Path                      = C:\Program Files\Android\android-sdk-windows\platforms\android-19
         12) android-20
           Name                      = Android 4.4W
           API Level                 = 20
           Revision                  = 1
           Skins                     = HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800, WVGA854, WXGA720, WXGA800, WXGA800-7in
           ABIs                      = no ABIs.
           Path                      = C:\Program Files\Android\android-sdk-windows\platforms\android-20
       
  4. Ingo Muschenetz 2015-05-21

    You can target down to API 14. You just need 21 installed to build.
  5. Fokke Zandbergen 2015-05-21

    [~ingo] I think we should make sure in these cases the build doesn't crash but gives some understandable feedback to the user. If we require 21, it should say so.
  6. Ingo Muschenetz 2015-05-21

    [~fokkezb] I think it will, assuming that TIMOB-18448 is fixed. [~hpham] is that the case?
  7. Hieu Pham 2015-05-21

    Yes that is fixed. You need API 21 as target SDK. Min SDK is still 10, meaning you can run on devices with API 10+. So client needs to have API 21 installed on their machine.
  8. Chee Kiat Ng 2015-05-29

  9. Lokesh Choudhary 2015-05-29

JSON Source