mixpanel / mixpanel-react-native

Official React Native Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
107 stars 48 forks source link

With react-native 0.74 min android sdk version needs to updated #252

Closed jkdowdle closed 1 month ago

jkdowdle commented 5 months ago

Motivation

I was attempting to upgrade my project to use the react-native@0.74.1 and when I tried to create an android build I ran into this error message indicating that the libraries have a differing min sdk version (21 vs 23)

It seems like I could use the expo / non-native version but I would like to continue to use the native.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':mixpanel-react-native:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.facebook.react:react-android:0.74.1] /Users/joshuadowdle/.gradle/caches/transforms-4/fc4dd7a54b1a3c5197151f78787e8c22/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)
WrathChaos commented 1 month ago

I have the same issue, will someone fix it?

zihejia commented 1 month ago

Thanks @jkdowdle @WrathChaos for bringing it up. It's fixed in 3.0.6!