Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25256] Android: If android:minSdkVersion is too low, also check android:targetSdkVersion

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.1.2, Release 6.2.0
Fix Version/sn/a
ComponentsAndroid, CLI
Labelscb-tooling, ux
ReporterEwan Harris
AssigneeUnknown
Created2017-09-08T14:11:15.000+0000
Updated2020-01-30T21:40:36.000+0000

Description

Description

When a build fails because a user defined minSDKVersion for Android is lower than ours we error out, telling them to change it and output a what they need to add, it would be nice if we could add some extra logic to also detect whether their targetSDKVersion is supported and tell them that it isn't, then in the log output also change that to prevent them having two successive changed builds due to a config change they could easily overlook in release notes
[ERROR] The minimum supported SDK API version must be 16 or newer, but is currently set to 12

Update the android:minSdkVersion in the tiapp.xml or custom AndroidManifest to at least 16:

<ti:app xmlns:ti="http://ti.appcelerator.org">
    <android>
        <manifest>
            <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="I'm not a real value" />
        </manifest>
    </android>
</ti:app>

Steps to reproduce

Change your uses-sdk tag in manifest to the following <uses-sdk android:minSdkVersion="12" android:targetSdkVersion="12" />

Build for Android ti build -p android -T device --build-only

Actual

Log message has the same targetSDKVersion which is unsupported

Comments

No comments

JSON Source