Why was minSDKVersion for Android raised to 16 on Qt5.7+ ?



  • Well the title says it:
    Was there a specific reason to raise the minimum supported Android API?
    The only thing I've found was https://codereview.qt-project.org/#/c/143248/ which seems to be mostly about removing checks for older API versions.
    Is there anything in Qt >= 5.7 that absolutely requires API 16+ (apart from some features that will not be available on older API) ?
    It would be nice if it was possible to build newer Versions of Qt for the older API, even if it means that some features won't work.


  • Moderators

    @lkdem said in Why was minSDKVersion for Android raised to 16 on Qt5.7+ ?:

    It would be nice if it was possible to build newer Versions of Qt for the older API, even if it means that some features won't work.

    try it. Just replace the min sdk version in the build.gradle and see if it the java part compiles and your app successfully runs (no crucial exceptions are thrown)



  • Okay, I've got it working:
    The trick is to keep the minSdkVersion entry in AndroidManifest.xml at 16 and only set it to a lower value in build.gradle, as androiddeployqt checks AndroidManifest.xml and stops if the version is < 16.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.