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
No comments