You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/28 09:53:49 UTC

[GitHub] EmeryGuillaume commented on issue #686: Bug: Cordova does not set the minSdkVersion and targetSdkVersion from config.xml correctly in the APK.

EmeryGuillaume commented on issue #686: Bug: Cordova does not set the minSdkVersion and targetSdkVersion from config.xml correctly in the APK.
URL: https://github.com/apache/cordova-android/issues/686#issuecomment-468209357
 
 
   I can confirm this bug: the minSdkVersion is ignored from the config.xml (I specify minSdkVersion=21 and the output apk targets 19 which is android 4.4). None of my Cordova plugin sets this minsdkversion to 19 so there is an issue with cordova-android itself.
   
   As a workaround I've created a build-extras.gradle with the following content:
   
   `allprojects {
       project.ext {
         defaultMinSdkVersion=21
       }
   }
   `
   
   I copy this file in the platforms/android folder with a before_build hook and it does the job.
   
   I hope it can help until this issue is addressed.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org