Skip to content
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

multiple_maps - Android: Fix minSdkVersion 19 cannot be smaller than version 21 #2939

Open
wants to merge 1 commit into
base: multiple_maps
Choose a base branch
from

Conversation

GitToTheHub
Copy link

When you make a fresh Cordova app, add this plugin and build it, there will be the error:

.../hello/platforms/android/app/src/main/AndroidManifest.xml Error:
        uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [androidx.core:core-splashscreen:1.0.0] .../.gradle/caches/transforms-4/34c2c9227e2d15c94d4f3d9edef35ec8/transformed/jetified-core-splashscreen-1.0.0/AndroidManifest.xml as the library might be using APIs not available in 19
        Suggestion: use a compatible library with a minSdk of at most 19,
                or increase this project's minSdk version to at least 21,
                or use tools:overrideLibrary="androidx.core.splashscreen" to force usage (may lead to runtime failures)

See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.

this is fixed, by setting minSdk to 21 in plugin.xml

…ared in library [androidx.core:core-splashscreen:1.0.0]

In plugin.xml "android-minSdkVersion" ist set to 19 for the config.xml and must be set to 21, because the referenced Library "androidx.core:core-splashscreen:1.0.0" defines minSdkVersion to 21. Both cannot live side by side.
@GitToTheHub GitToTheHub changed the title multiple_maps - Android: Fix min sdk version 19 cannot be smaller than version 21 multiple_maps - Android: Fix minSdkVersion 19 cannot be smaller than version 21 Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant