-
Notifications
You must be signed in to change notification settings - Fork 251
Description
Before submitting a new issue
- I tested using the latest version of the library, as the bug might be already fixed.
- I tested using a supported version of react native.
- I checked for possible duplicate issues, with possible answers.
Bug summary
Building with NDK28 introduces a much different libc++_shared.so. This has exposed that the android/build.gradlle is missing the ndkVersion
The android section of android/build.gradle needs modifying to include
ndkVersion getExtOrDefault("ndkVersion")
Library version
0.2.10
Project type
React Native (bare workflow)
React Native version
0.81.4
Expo SDK version (if applicable)
No response
Environment info
npx react-native info
info Fetching system and libraries information...
System:
OS: Windows 11 10.0.26200
CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
Memory: 12.01 GB / 31.91 GB
Binaries:
Node:
version: 20.19.4
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.22
path: ~\AppData\Roaming\npm\yarn.CMD
npm:
version: 10.8.2
path: C:\Program Files\nodejs\npm.CMD
Watchman:
version: 20240728.093121.0
path: C:\ProgramData\chocolatey\bin\watchman.EXE
SDKs:
Android SDK:
API Levels:
- "34"
- "35"
- "36"
Build Tools:
- 30.0.3
- 33.0.0
- 33.0.1
- 34.0.0
- 35.0.0
- 36.0.0
- 36.1.0
System Images:
- android-36 | Google Play Intel x86_64 Atom
Android NDK: 28.0.13004108
Windows SDK: Not Found
IDEs:
Android Studio: AI-252.27397.103.2522.14514259
Visual Studio: Not Found
Languages:
Java:
version: 17.0.10
path: C:\Program Files\Java\jdk-17\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.4
wanted: 0.81.4
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
info React Native v0.83.0 is now available (your project is running on v0.81.4).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.83.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.81.4&to=0.83.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".Steps to reproduce
- Build an app using NDK
buildscript {
ext {
buildToolsVersion = "36.0.0"
minSdkVersion = 26
compileSdkVersion = 36
targetSdkVersion = 36
kotlin_version = '2.1.20' // https://kotlinlang.org/docs/gradle-configure-project.html#apply-the-plugin
kotlinVersion = '2.1.20' // This is required for @invertase/react-native-apple-authentication
ndkVersion = "28.0.13004108"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.2'
classpath("com.facebook.react:react-native-gradle-plugin:0.81.4")
classpath 'com.google.gms:google-services:4.3.15'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
Reproducible example repository
N/A