react-native-reanimated icon indicating copy to clipboard operation
react-native-reanimated copied to clipboard

A problem occurred configuring project ':react-native-reanimated'. > NDK not configured. Download it with SDK manager. Preferred NDK version is '21.0.6113669'.

Open millro04 opened this issue 2 years ago β€’ 20 comments

Seeing this error when upgrading from to react-native-reanimated version 2.4.1

A problem occurred configuring project ':react-native-reanimated'.

NDK not configured. Download it with SDK manager. Preferred NDK version is '21.0.6113669'.

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!

millro04 avatar Apr 12 '22 14:04 millro04

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?

github-actions[bot] avatar Apr 12 '22 15:04 github-actions[bot]

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.

github-actions[bot] avatar Apr 12 '22 15:04 github-actions[bot]

Hey millro04 πŸ‘‹πŸΌ

I was facing the same issue. I managed to get a rid of it by doing this.

  1. Close Android Studio if it's open
  2. Remove installed NDK with rm -rf ~/Library/Android/sdk/ndk/21.4.7075529
  3. Remove your app on your device with adb uninstall YOUR_BUNDLE_ID
  4. Remove your app build with rm -rf android/app/build
  5. Open Android Studio -> Tools -> SDK Manager -> SDK Tools (Tick NDK β˜‘οΈ)
  6. Rebuilded the app from Android Studio

anthlasserre avatar Apr 14 '22 16:04 anthlasserre

I have reproduced my current solution.

  1. Opened android studio
  2. Check the details NDK required on the error (Show Package Details)
  3. Download it.
  4. cd android && ./gradlew clean && cd .. && yarn android

NOTE: on my case, I have missing NDK version 21..1.6352463 Screen Shot 2022-07-01 at 7 09 56 PM

imamabdulazis avatar Jul 01 '22 12:07 imamabdulazis

+1

syed-qure avatar Oct 19 '22 10:10 syed-qure

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?

github-actions[bot] avatar Oct 19 '22 10:10 github-actions[bot]

For anyone who is having trouble installing ndk version 21.0.6113669 on M1, here's a tracker https://issuetracker.google.com/issues/251482055

syed-qure avatar Oct 19 '22 10:10 syed-qure

+1

chetanbhadarka avatar Mar 18 '23 14:03 chetanbhadarka

+1

shafqatbari avatar Mar 27 '23 18:03 shafqatbari

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 πŸ˜‰

chetanbhadarka avatar Mar 29 '23 05:03 chetanbhadarka

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?

lucianomlima avatar Jul 07 '23 14:07 lucianomlima

I'm having this issue on Bitrise...

bao-multiIT avatar Sep 19 '23 12:09 bao-multiIT

I was struggling with the same issue with my project.. then this is how I solved it.

  1. Go to "/android/build.gradle"
  2. Change the default NDK version just like the image below

스크란샷 2023-10-12 15 33 30

bored-yuns avatar Oct 12 '23 06:10 bored-yuns

+1

duyhodev avatar Nov 13 '23 18:11 duyhodev

+1

ParkAward avatar Dec 06 '23 08:12 ParkAward

so how do you guys solve this to be exactly?

firstpersoncode avatar Dec 17 '23 10:12 firstpersoncode

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.

Sakib-203-15-3883 avatar Feb 29 '24 09:02 Sakib-203-15-3883

Seems like we no longer have the luxury to select different versions in the latest Android Studio image

PhillipMwaniki avatar May 01 '24 09:05 PhillipMwaniki

@PhillipMwaniki β€œshow package details” https://github.com/software-mansion/react-native-reanimated/issues/3176#issuecomment-1172293699

imamabdulazis avatar May 01 '24 09:05 imamabdulazis