Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16877] Android: Build errors setting a targetSdkVersion lower than 14

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2014-05-15T18:18:26.000+0000
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-3.3.0, regression
ReporterFederico Casali
AssigneeHieu Pham
Created2014-04-23T18:52:55.000+0000
Updated2014-05-23T17:15:09.000+0000

Description

Problem description

If specifying an Android targetSdkVersion lower than '14' in the Android manifest, the build fails.

Steps to reproduce

1. Create a new Titanium classic or Alloy project 2. Edit TiApp.xml and add the following lines:
<android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <uses-sdk android:targetSdkVersion="11"/>
        </manifest>
    </android>
3. Build the app. Result: build fails with errors relative to Holo themes and activebars. See attached log. 4. Edit TiApp.xml and set "14" as the targetSdkVersion. Result: build is successful and app runs as expected. The issue is only reproducible using TiSDK 3.3.0. Not reproducible with TiSDK 3.2.X. It could be a regression.

Attachments

FileDateSize
android_330_SDKv11.log2014-04-23T18:52:55.000+000014082

Comments

  1. Lokesh Choudhary 2014-04-23

    I too see this issue when sdk 3.3.0 is used. The app packaging during build fails as indicated in the attached log file when the android sdk version is 14 or lower.
  2. Hieu Pham 2014-05-15

    This is expected behavior, since AppCompat requires 14 to compile certain assets. This will be in the release notes, and is already documented here: http://docs.appcelerator.com/titanium/latest/#!/guide/Android_Themes. Resolving issue as invalid.
  3. Lokesh Choudhary 2014-05-23

    Closing as according to [~hpham] comment "This is expected behavior, since AppCompat requires 14 to compile certain assets". The app builds without any errors if the targetSdkversion is set to 14.

JSON Source