-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect default min SDK version ternary in build.gradle #489
Comments
I also noticed that gradle extensions get injected before these versions are determined, meaning any plugin relying on these sees them as
|
This is still an issue in 7.1.2. As workaround you can specify overwrite the defaultMinSdkVersion in a
|
This was not cherry-picked to the bugfix branch for 7.1.x, it will be included in the next major version. |
@dpogue I did not understand the motivation for not including this in the bugfix branch it is documentented to work like that. So it is clearly a bug. I also add a pull request #551 for the missing type cast |
I've been trying to work out why the min SDK was always being set to
19
even when I updated it to23
every where possible.I believe I've found an issue here https://github.com/apache/cordova-android/blob/master/bin/templates/project/app/build.gradle#L120 where it's setting the
cdvMinSdkVersion
tonull
when it's alreadynull
, else if it's notnull
it's setting it to the default min SDK version, meaning if you ever set a min SDK it will always change it to the default.I believe the correct line should read:
The text was updated successfully, but these errors were encountered: