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

Issue with incompatible minSdk Version #1

Open
youcci opened this issue Mar 25, 2022 · 0 comments
Open

Issue with incompatible minSdk Version #1

youcci opened this issue Mar 25, 2022 · 0 comments

Comments

@youcci
Copy link

youcci commented Mar 25, 2022

Hello. I wanted to get the React Native API Sampler running.
After doing the steps from the README i ran npx react-native run-android and got the following Errors:

`info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 881 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...

Task :app:processDebugMainManifest FAILED

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

27 actionable tasks: 27 executed
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
/Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/android/app/src/debug/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [:Connect-SDK-Android-Core] /Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/android/Connect-SDK-Android-Core/build/intermediates/merged_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 24,
or use tools:overrideLibrary="com.connectsdk.androidcore" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [:Connect-SDK-Android-Core] /Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/android/Connect-SDK-Android-Core/build/intermediates/merged_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 24,
or use tools:overrideLibrary="com.connectsdk.androidcore" to force usage (may lead to runtime failures)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
/Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/android/app/src/debug/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [:Connect-SDK-Android-Core] /Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/android/Connect-SDK-Android-Core/build/intermediates/merged_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 24,
or use tools:overrideLibrary="com.connectsdk.androidcore" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugMainManifest'.

Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [:Connect-SDK-Android-Core] /Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/android/Connect-SDK-Android-Core/build/intermediates/merged_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 24,
or use tools:overrideLibrary="com.connectsdk.androidcore" to force usage (may lead to runtime failures)

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s

at makeError (/Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/youcci/Desktop/ConnectSDKReactNativeAPISampler-master/node_modules/@react-native-community/cli/build/index.js:192:9)`

I think there is an issue with the minSdk of the React Native and the minSdk of Connect-SDK-Android-Core.
But increasing the React Native minSdk results in different errors.

Can you help me to figure out how to solve this?

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

No branches or pull requests

1 participant