Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20109] Android: Not able to target a lower Android SDK version in Manifest

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionDone
Resolution Date2018-11-02T02:32:17.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterAshraf Abu
AssigneeAshraf Abu
Created2015-12-08T03:18:09.000+0000
Updated2018-11-02T02:32:17.000+0000

Description

Using:-
    <android xmlns:android="http://schemas.android.com/apk/res/android">
        <manifest>
            <uses-sdk android:targetSdkVersion="22"/>
        </manifest>
    </android>
Gives this error:-
Update the android:targetSdkVersion in the tiapp.xml or custom AndroidManifest to at least 23:
[ERROR] :  The target SDK API 22 is not supported by Titanium SDK 5.1.1
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <android>
        <manifest>
            <uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
        </manifest>
    </android>
</ti:app>
[ERROR] :  The target SDK API version must be 23 or newer
TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/msamah/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)
[ERROR] Application Installer abnormal process termination. Process exit value was 1
Expected behaviour:- For this force sdk version setting to run correctly.

Comments

  1. Ashraf Abu 2015-12-08

    This is not possible at the moment due to the appcompat library being used is set for 23.
  2. Joshua Quick 2018-11-02

    Titanium 6.0.0 and higher already supports targeting a different API Level. And we document what range of API Levels each version of Titanium support. However, the targeted API Level must be in the range that Titanium supports, but this is not a major issue since Google Play expects apps to target a relatively new'ish version anyways. Closing.

JSON Source