[TIMOB-18778] Android: Update latest supported build tools version to 22
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-10T13:09:01.000+0000 |
Affected Version/s | Release 4.0.0 |
Fix Version/s | Release 4.0.0 |
Components | Android, CLI |
Labels | beta4, qe-4.0.0 |
Reporter | Lokesh Choudhary |
Assignee | Chris Barber |
Created | 2015-04-03T00:07:34.000+0000 |
Updated | 2017-10-18T21:37:27.000+0000 |
Description
Steps To Reproduce:
1. Make sure you do not have android API 21 installed on the machine. You can have all other android API's installed including API 22.
2. Build an android app to device/emulator.
Actual Results:
1. The build fails at packaging stage.
2. If API 21 is installed build succeeds.
3. If API 22 is installed & API 21 is not installed, still the build fails.
4. We see that if API 21 is not installed & API 22 is installed the build targets sdk 19 rather than 22.
NOTE : Logs attached for reference.
Expected Results:
1. The build should succeed if android API 21 is not installed.
Attachments
File | Date | Size |
logs.txt | 2015-04-03T00:07:34.000+0000 | 64507 |
We need to update https://github.com/appcelerator/titanium_mobile/blob/master/android/package.json#L22 to fix this.
[~lokeshchdhry] please try deleting everything other than 22 and try again.
[~ingo] 1. If I remove all API's except API 22 then I get error from studio "You don't have android 2.3.3 installed". 2. If I have android 2.3.3 (API 10) & API 22. The build process targets API 10 & the build process fails with the same errors as in the logs attached.
Chris, could you please look at this when available?
[~ingo] Do we support API 22? If so, then we need to update Android's package.json.
[~cbarber] yes. Though I believe the is also a logic error in the code. Assume maximum of 21: * 19 and 22 installed, use 22 * 22 installed, use 22 * 19 installed, fail * 19, 21, 22 installed, use 21 We should err on the side of using the newest version that we think should work.
timob master pr: https://github.com/appcelerator/titanium_mobile/pull/6773 timob 4_0_X pr: https://github.com/appcelerator/titanium_mobile/pull/6774
PR merged.
Verified the fix. Closing. Environment: Appc Studio : 4.0.0.201505042041 Ti SDK : 4.0.0RC2 CLI : 4.0.0-beta8 Alloy : 1.6.0-beta4 MAC Yosemite : 10.10.3 Appc npm : 0.3.55 Appc CLI : 0.2.279 Node: v0.10.37