You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
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.
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.
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?
The text was updated successfully, but these errors were encountered:
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...
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.
Execution failed for task ':app:processDebugMainManifest'.
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.
Execution failed for task ':app:processDebugMainManifest'.
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
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?
The text was updated successfully, but these errors were encountered: