Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25510] Android: Lower min "targetSdkVersion" from 25 to 23

GitHub Issuen/a
TypeImprovement
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2017-11-13T23:32:19.000+0000
Affected Version/sRelease 6.2.2
Fix Version/sRelease 7.0.0
ComponentsAndroid
Labelsandroid, tiapp.xml
ReporterJoshua Quick
AssigneeJoshua Quick
Created2017-11-13T22:35:51.000+0000
Updated2017-11-15T05:30:15.000+0000

Description

*Summary:* As of Titanium 6.2.2, the min "targetSdkVersion" that an app can target is Android API Level 25 (aka: Android 7.0). This is an issue for developers that are running into problems with file permission issues (such as custom notification sounds [AC-5349]) and their only work-around is to lower the target API Level 23 (aka: Android 6.0). *Steps to reproduce:*

Set up a project which uses Titanium 6.2.2 or 6.3.0.

Add the below XML to the "tiapp.xml" file.

Attempt to build the app.

<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
	<android xmlns:android="http://schemas.android.com/apk/res/android">
		<manifest>
			<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="23"/>
		</manifest>
	</android>
</ti:app>
*Result:* The build fails in 6.2.2 and 6.3.0. The following error gets logged.
[ERROR] :  The target SDK API 23 is not supported by Titanium SDK 6.2.2
Update the android:targetSdkVersion in the tiapp.xml or custom AndroidManifest to at least 25:
<ti:app xmlns:ti="http://ti.appcelerator.org">
    <android>
        <manifest>
[ERROR] :  The target SDK API version must be 25 or newer
            <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
        </manifest>
    </android>
</ti:app>

Comments

  1. Joshua Quick 2017-11-13

    PR (master): https://github.com/appcelerator/titanium_mobile/pull/9595
  2. Lokesh Choudhary 2017-11-13

    FR Passed. Waiting for merge to get enabled.
  3. Lokesh Choudhary 2017-11-13

    PR merged.
  4. Abir Mukherjee 2017-11-15

    Changes are seen in SDK 7.0.0.v20171114202841.

JSON Source