Open millro04 opened 2 years ago
Hey! π
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?
Hey! π
It looks like you've omitted a few important sections from the issue template.
Please complete Description, Snack or minimal code example, Package versions and Affected platforms sections.
Hey millro04 ππΌ
I was facing the same issue. I managed to get a rid of it by doing this.
rm -rf ~/Library/Android/sdk/ndk/21.4.7075529
adb uninstall YOUR_BUNDLE_ID
rm -rf android/app/build
I have reproduced my current solution.
NOTE: on my case, I have missing NDK version 21..1.6352463
+1
Hey! π
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
For anyone who is having trouble installing ndk version 21.0.6113669 on M1, here's a tracker https://issuetracker.google.com/issues/251482055
+1
+1
Resolve this issue by removing installed NDK from ".../Android/Sdk/Ndk/" folder and then re-run the project. It'll work as charm.
Have a good day π
If it's needed to install the NDK (and here it was also needed to install CMake), should this be added in the install docs?
I'm having this issue on Bitrise...
I was struggling with the same issue with my project.. then this is how I solved it.
+1
+1
so how do you guys solve this to be exactly?
You can open Android Studio, navigate to Tools > SDK Manager, switch to the SDK Tools tab, and check if the NDK is installed. If it's installed, you can try uninstalling and reinstalling it to ensure a clean installation. in my case it was not installed, I just installed it Currently NDK version is 25.1.8937393 for React Native Reanimated.
Seems like we no longer have the luxury to select different versions in the latest Android Studio
@PhillipMwaniki βshow package detailsβ https://github.com/software-mansion/react-native-reanimated/issues/3176#issuecomment-1172293699
I was getting the same error after upgrading this library from v1 to v2
NDK not configured. Download it with SDK manager. Preferred NDK version is '21.0.6113669'.
Reanimated : 2.17.0 React Native: 0.64.1 Node JS: v16.19.0 Machine: Apple M2 Sonoma
I managed to fix it using the steps below.
21.4.7075529
cd
into ndk folder, eg: /Users/abhi/Library/Android/sdk/ndk
cp -r 21.4.7075529 21.0.6113669
21.4.7075529
with 21.0.6113669
in 21.0.6113669/package.xml
and 21.0.6113669/source.properties
filesnode_modules
and android build
filesyarn
&& npx react-native run-android
I also faced an issue with i18n during build. Fixed it by commenting the minSdkVersion and patch updating it.
build.gradle
gradle-wrapper.properties
SDK Manager
Seems like we no longer have the luxury to select different versions in the latest Android Studio
You need to toggle this checkbox Show Package Details
you should make the following change enter to =====> android\app\build.gradle and change android { ndkVersion = "25.1.8937393"
} and sure to download from SDK Tool -NDK- or Update it
Seeing this error when upgrading from to react-native-reanimated version 2.4.1
A problem occurred configuring project ':react-native-reanimated'.
Is there any documentation for how to properly install NDK for this package now? I can't find anything related to NDK in the docs here. Thanks!