Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compatible side by side NDK version was not found React Native

I Have created a blank react native app and added webrtc package and now when I install my react native on my phones ,after installation it gets closed automatically and I don't know why app gets closed . The only thing i have noticed in my terminal is that it is saying Compatible side by side NDK version was not found . my Package.json is

{
  "name": "calling_App",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint ."
  },
  "dependencies": {
    "react": "16.11.0",
    "react-native": "0.62.2",
    "react-native-webrtc": "^1.75.3"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0",
    "@babel/runtime": "^7.9.2",
    "@react-native-community/eslint-config": "^1.0.0",
    "babel-jest": "^25.3.0",
    "eslint": "^6.8.0",
    "jest": "^25.3.0",
    "metro-react-native-babel-preset": "^0.59.0",
    "react-test-renderer": "16.11.0"
  },
  "jest": {
    "preset": "react-native"
  }
}
like image 974
Eddy Avatar asked Apr 13 '20 17:04

Eddy


People also ask

How do I know my NDK version in react native?

Solution: Check if NDK is installed or not:Open your Android Studio, go to tools and click on SDK Manager. It will show you a window with three tabs: SDK Platforms, SDK Tools and SDK Update sites. Click on SDK Tools. Here, you will see if NDK is installed or not in your system.

How do I install a specific version of NDK?

Install a specific version of the NDKClick the SDK Tools tab. Select the Show Package Details checkbox. Select the NDK (Side by side) checkbox and the checkboxes below it that correspond to the NDK versions you want to install. Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory.

What is NDK in react native?

The Android Native Development Kit (NDK) allows you to implement parts of your app in native code, using languages such as C and C++.

Is NDK necessary for react native?

In addition to having RN set up, you'll also need to get the Android NDK (Native Development Kit). While we have not had an issue using later versions, React Native only supports version 10e, which you may download here.


Video Answer


1 Answers

Do you have NDK Side-by-Side installed?

Check your SDK Manager in Android Studio. If not, install, restart your workstation and try running the project again.

enter image description here

like image 165
Atila Levy Avatar answered Sep 30 '22 16:09

Atila Levy