Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25510

Android: Lower min "targetSdkVersion" from 25 to 23

    Details

    • Story Points:
      1

      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:

      1. Set up a project which uses Titanium 6.2.2 or 6.3.0.
      2. Add the below XML to the "tiapp.xml" file.
      3. 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>
      

        Attachments

          Activity

            People

            • Assignee:
              jquick Joshua Quick
              Reporter:
              jquick Joshua Quick
              Reviewer:
              Gary Mathews
              Tester:
              Lokesh Choudhary
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code