Skip to content

[馃悰] Manifest merger failed聽#2300

Description

@AliYar-Khan

Description

Package is not working with latest react native version 0.74.1.

Explain the bug in as much detail as possible

Package requires min sdk version to 21 but react native 0.74.1 requires 23. While building the project the manifest merge failed with following error:

C:\Freelance\Meetkor\android\app\src\debug\AndroidManifest.xml Error:
        uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.facebook.react:react-android:0.74.1] C:\Users\acer\.gradle\caches\transforms-3\817bf4b774b7361c46230e491303d01c\transformed\jetified-react-android-0.74.1-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 23,
                or use tools:overrideLibrary="com.facebook.react" 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 23 declared in library [com.facebook.react:react-android:0.74.1] C:\Users\acer\.gradle\caches\transforms-3\817bf4b774b7361c46230e491303d01c\transformed\jetified-react-android-0.74.1-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 23,
                or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)

How to repeat issue and example

  • step to reproduce the issue
  • create a project wiith latest react native version
  • install the package
  • run the project

Solution

  • probably need to increase the minsdk version in the gradle file of package

Additional Information

  • Image Picker version: "^7.1.2",
  • React Native version: "0.74.1",
  • Platform: Android,
  • Development Operating System: Windows,
  • Dev tools: Android Studio Jellyfish | 2023.3.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions