[TIMOB-13799] Android: Unable to build the project if no "android-8" or "android-2.2" in the Android SDK
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-17T20:01:07.000+0000 |
Affected Version/s | Release 3.1.1 |
Fix Version/s | 2013 Sprint 10 Core, 2013 Sprint 10, Release 3.1.1, Release 3.2.0 |
Components | Android |
Labels | qe-3.1.1, qe-closed-3.1.1, qe-testadded |
Reporter | Olga Romero |
Assignee | Allen Yeung |
Created | 2013-05-09T17:26:21.000+0000 |
Updated | 2014-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
File | Date | Size |
---|---|---|
code_lines | 2013-05-09T18:05:13.000+0000 | 621 |
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.
I think this is two lines in support/android.
Please see the attachment for lines.
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.
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"
PR: https://github.com/appcelerator/titanium_mobile/pull/4251
Backport for 3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4290
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.