[TIMOB-18934] Android: Failed to package application if API Level 21 not installed. Process exit value was 1
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2015-05-29T00:51:52.000+0000 |
Affected Version/s | Release 4.0.0 |
Fix Version/s | Release 4.1.0, Release 4.0.1 |
Components | Android |
Labels | faild, package |
Reporter | Shuo Liang |
Assignee | Ingo Muschenetz |
Created | 2015-05-21T07:47:34.000+0000 |
Updated | 2015-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
File | Date | Size |
---|---|---|
log file.txt | 2015-05-21T07:59:35.000+0000 | 3430953 |
ti info.txt | 2015-05-21T07:59:30.000+0000 | 17718 |
ti setup check.txt | 2015-05-21T07:59:29.000+0000 | 3744 |
[~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.
[~bhatfield] we should make sure this is prominent in the release notes. [~fokkezb] [~emerriman] [~rtlechuga] any additional thoughts?
FWIW, this is confirmed by the installed SDKs:
You can target down to API 14. You just need 21 installed to build.
[~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.
[~fokkezb] I think it will, assuming that TIMOB-18448 is fixed. [~hpham] is that the case?
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.