cdvMinSdkVersion seems to not work in 7.1.4
See original GitHub issueI specified this <preference name="android-minSdkVersion" value="23" />
into config.xml
, but it seems not work in 7.1.4
.
I think these PRs might cause this problem.
- https://github.com/apache/cordova-android/pull/495/files
- https://github.com/apache/cordova-android/pull/551/files
I quickly fix this line to
ext.cdvMinSdkVersion = cdvMinSdkVersion == null ? null : Integer.parseInt('' + defaultMinSdkVersion)
.
It seems to work well.
I think actual cdvMinSdkVersion
is set on this line.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:10
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Android build issues with cordova - Stack Overflow
I have a cordova android app that I am trying to build with android version 8.1.0. While I attempt build, I see the...
Read more >Android Platform Guide - Apache Cordova
Android Platform Guide. This guide shows how to set up your SDK environment to deploy Cordova apps for Android devices, and how to...
Read more >Ionic Forum - Latest topics - RSSing.com
Hi guys. I have this problem when generating apk of my project. Does anyone know how to solve? cordova-android-support-gradle-release: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI: The workaround is to specify
gradleArg
when you build.cordova build android -- --gradleArg=-PcdvMinSdkVersion=23
This will override
minSdkVersion
. I confirmed it works on7.1.4
.You can confirm whether it works well using
aapt
command.aapt l -a path/to/apk/android-release.apk | grep 'minSdkVersion'
I solved changing lines in file: platforms/android/gradle.properties
to