Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-13799] Android: Unable to build the project if no "android-8" or "android-2.2" in the Android SDK

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-05-17T20:01:07.000+0000
Affected Version/sRelease 3.1.1
Fix Version/s2013 Sprint 10 Core, 2013 Sprint 10, Release 3.1.1, Release 3.2.0
ComponentsAndroid
Labelsqe-3.1.1, qe-closed-3.1.1, qe-testadded
ReporterOlga Romero
AssigneeAllen Yeung
Created2013-05-09T17:26:21.000+0000
Updated2014-02-24T23:35:54.000+0000

Description

To set a default Android SDK as 2.3.3(API 10), which is required now by Studio to be able to build porjects, I deleted Android SDK 2.2 (API 8). Test steps: 1. Create the project 2. Build it on device or emulator Actual result:
Exception: No "android-8" or "android-2.2" in the Android SDK
[ERROR] Build process exited with code 1
[ERROR] Project failed to build after 327ms
Expected result: The project should build successfully

Attachments

FileDateSize
code_lines2013-05-09T18:05:13.000+0000621

Comments

  1. Neeraj Gupta 2013-05-09

    I believe this is hard coded somewhere and may not be required anymore. We should investigate our dependency on Android 2.2 and eliminate it.
  2. Arthur Evans 2013-05-09

    I think this is two lines in support/android.
  3. Olga Romero 2013-05-09

    Please see the attachment for lines.
  4. Arthur Evans 2013-05-09

    Simple fix here (gets stuff working again): builder.py: MIN_API_LEVEL = 10 androidsdk.py DEFAULT_API_LEVEL = 10 However, with these fixes existing run configurations that are configured to use pre-8 SDKs will exit with cryptic errors.
  5. Blain Hamon 2013-05-09

    Also of note via naive search: The following lines might also be suspect to be an issue for when Appcelerator builds: android/runtime/v8/Application.mk:10 TARGET_PLATFORM = android-8 android/runtime/v8/ndk-build.sh:30 export ANDROID_PLATFORM="$(cd "$ANDROID_SDK"; pwd)/platforms/android-8"
  6. Allen Yeung 2013-05-11

    PR: https://github.com/appcelerator/titanium_mobile/pull/4251
  7. Allen Yeung 2013-05-17

    Backport for 3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4290
  8. Federico Casali 2013-05-29

    Verified as fixed and working as expected. Appcelerator Studio 3.1.1.201305282349 Titanium SDK 3.1.1.v20130524180421 Alloy 1.1.3-alpha Titanium-Code-Processor 1.1.3-alpha3 No Android-8/Android-2.2 installed. Closing.

JSON Source