matinzd / react-native-health-connect

React native library for health connect (Android only)
http://matinzd.github.io/react-native-health-connect
MIT License
217 stars 43 forks source link

uses-sdk:minSdkVersion 23 cannot be smaller than version 26 declared in library [androidx.health.connect...] #121

Closed realPrimoh closed 2 months ago

realPrimoh commented 2 months ago

Describe the bug Error is:

> Task :app:processDebugMainManifest FAILED
/Users/***/Projects/***/android/app/src/debug/AndroidManifest.xml Error:
        uses-sdk:minSdkVersion 23 cannot be smaller than version 26 declared in library [androidx.health.connect:connect-client:1.1.0-alpha06] /Users/***/.gradle/caches/transforms-4/ae4421fd35b079acbae3c31383d9ea69/transformed/jetified-connect-client-1.1.0-alpha06/AndroidManifest.xml as the library might be using APIs not available in 23
        Suggestion: use a compatible library with a minSdk of at most 23,
                or increase this project's minSdk version to at least 26,
                or use tools:overrideLibrary="androidx.health.connect.client" to force usage (may lead to runtime failures)

See https://developer.android.com/r/studio-ui/build/manifest-merger for more information about the manifest merger.

To Reproduce

Not sure. I just followed the installation instructions and got this error.

Expected behavior

Ideally, my Android build should've built successfully.

Environment:

I'm getting issues with the Expo installation. Is there a step missing in the Expo installation guide or is it an issue with my project? Any help would be appreciated greatly. Thank you!

realPrimoh commented 2 months ago

Nvm. I just had to update my build.gradle to minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '26').

Sorry! Simple fix haha.