Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18778] Android: Update latest supported build tools version to 22

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-04-10T13:09:01.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sRelease 4.0.0
ComponentsAndroid, CLI
Labelsbeta4, qe-4.0.0
ReporterLokesh Choudhary
AssigneeChris Barber
Created2015-04-03T00:07:34.000+0000
Updated2017-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

FileDateSize
logs.txt2015-04-03T00:07:34.000+000064507

Comments

  1. Ingo Muschenetz 2015-04-03

    We need to update https://github.com/appcelerator/titanium_mobile/blob/master/android/package.json#L22 to fix this.
  2. Ingo Muschenetz 2015-04-03

    [~lokeshchdhry] please try deleting everything other than 22 and try again.
  3. Lokesh Choudhary 2015-04-03

    [~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.
       [INFO] :   Deploy type: development
       [INFO] :   Building for target: emulator
       [INFO] :   Building for emulator: Lollipop Preview - Nexus 5 - 5.0.0 - API 21 - 1080x1920
       [INFO] :   Targeting Android SDK: 10
       [INFO] :   Building for the following architectures: armeabi, armeabi-v7a, x86
       [INFO] :   Signing with keystore: /Users/lokeshchoudhary/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.Beta2/android/dev_keystore (tidev)
       
  4. Ingo Muschenetz 2015-04-07

    Chris, could you please look at this when available?
  5. Chris Barber 2015-04-07

    [~ingo] Do we support API 22? If so, then we need to update Android's package.json.
  6. Ingo Muschenetz 2015-04-07

    [~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.
  7. Chris Barber 2015-04-08

    timob master pr: https://github.com/appcelerator/titanium_mobile/pull/6773 timob 4_0_X pr: https://github.com/appcelerator/titanium_mobile/pull/6774
  8. Feon Sua Xin Miao 2015-04-10

    PR merged.
  9. Lokesh Choudhary 2015-05-05

    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

JSON Source