Skip to content

react-native-mdm should support Android minSdkVersion 24 for modern React Native apps #61

Description

@vegimselmani

Hi,
We are using react-native-mdm in a React Native app and ran into an Android build failure with newer React Native / Android toolchains.
Current behavior:
The library’s Android build.gradle declares minSdkVersion 16.
Our app uses React Native 0.80.2.
Detox / Android test builds fail during manifest merging because react-android:0.80.2 requires minSdkVersion 24.
Error seen:
Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 24 declared in library [com.facebook.react:react-android:0.80.2]
Our app already supports minSdkVersion 26, so the library itself is the only blocker. We verified locally that changing the library’s Android minSdkVersion to 24 resolves the build issue.
Suggested fix:
Update the Android library minSdkVersion from 16 to 24, or
Better, inherit the root project minSdk instead of hardcoding 16.
Patch used locally:

  • minSdkVersion 16
  • minSdkVersion 24
    Context:
    Package: react-native-mdm
    Version: 2.0.1
    React Native: 0.80.2
    Use case: managed app configuration / passwordless login on Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions