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"
}
}
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.
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.
The Android Native Development Kit (NDK) allows you to implement parts of your app in native code, using languages such as C and C++.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With