[TIMOB-25510] Android: Lower min "targetSdkVersion" from 25 to 23
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | None |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-11-13T23:32:19.000+0000 |
Affected Version/s | Release 6.2.2 |
Fix Version/s | Release 7.0.0 |
Components | Android |
Labels | android, tiapp.xml |
Reporter | Joshua Quick |
Assignee | Joshua Quick |
Created | 2017-11-13T22:35:51.000+0000 |
Updated | 2017-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>
PR (master): https://github.com/appcelerator/titanium_mobile/pull/9595
FR Passed. Waiting for merge to get enabled.
PR merged.
Changes are seen in SDK 7.0.0.v20171114202841.