Skip to content

Hard-coded Android SDK versions in build.gradle cause build failure with Android 0.70.6 #222

@kevindice

Description

@kevindice

Expected Behaviour

Adding these packages to my project results in a successful build.

Actual Behaviour

The Android build.gradle files for each package here have hard-coded values for the compileSdkVersion, minSdkVersion, and targetSdkVersion. This causes build errors with React Native 0.70.6:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':adobe_react-native-aepuserprofile:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 21 declared in library [com.facebook.react:react-native:0.70.6] /Users/kdice/.gradle/caches/transforms-3/4b3c55c96a7b7307f23241c80fa0f0d7/transformed/jetified-react-native-0.70.6-debug/AndroidManifest.xml as the library might be using APIs not available in 16
        Suggestion: use a compatible library with a minSdk of at most 16,
                or increase this project's minSdk version to at least 21,
                or use tools:overrideLibrary="com.facebook.react" to force usage (may lead to runtime failures)

Reproduce Scenario (including but not limited to)

React Native 0.70.6 (and likely other versions).
The latest published versions of any packages from this repo.

Steps to Reproduce

Follow the readme instructions, attempt a build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions