The NDK (Native Development Kit) is a toolset provided by Google that allows you to write parts of your Android app using native languages like C or C++, instead of JavaScript, Java, or Kotlin.
3:
$ npx react-native info
warn Package react-native-sqlite-storage contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
info Fetching system and libraries information...
System:
OS: Linux 6.11 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
CPU: (4) x64 Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz
Memory: 1.89 GB / 7.45 GB
Shell:
version: 5.2.21
path: /bin/bash
Binaries:
Node:
version: 18.19.1
path: /usr/bin/node
Yarn: Not Found
npm:
version: 9.2.0
path: /usr/bin/npm
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "31"
- "36"
Build Tools:
- 35.0.0
- 36.0.0
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java:
version: 17.0.15
path: /home/jain/Desktop/cupboard/program_files/OpenJDK17U-jdk_x64_linux_hotspot_17.0.15_6/jdk-17.0.15+6/bin/javac
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.5
wanted: ^0.74.5
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: false
info React Native v0.80.1 is now available (your project is running on v0.74.5).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.80.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.5
info For more info, check out "https://reactnative.dev/docs/upgrading?os=linux".
4:
Logs from "npx react-native doctor"
✖ Android SDK - Required for building and installing your app on Android
- Versions found: 35.0.0, 36.0.0
- Version supported: 34.0.0
5.
Trying to fix version mismatch of SDK:
(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation$ cd $ANDROID_HOME
(base) jain@jain-ThinkPad-T440s:~/Android/Sdk$ ls
build-tools cmake cmdline-tools emulator extras licenses ndk platforms platform-tools skiaparser sources
(base) jain@jain-ThinkPad-T440s:~/Android/Sdk$ cd platforms
(base) jain@jain-ThinkPad-T440s:~/Android/Sdk/platforms$ ls
android-31 android-34 android-36
6:
Same issue in "react-native doctor"
✖ Android SDK - Required for building and installing your app on Android
- Versions found: 35.0.0, 36.0.0
- Version supported: 34.0.0
Part of logs from "npx react-native info"
SDKs:
Android SDK:
API Levels:
- "31"
- "34"
- "36"
Build Tools:
- 35.0.0
- 36.0.0
7:
FROM CHATGPT:
Using Android Studio GUI
-
Open Android Studio
-
Go to More Actions → SDK Manager
(Or: File > Settings > Appearance & Behavior > System Settings > Android SDK)
-
Go to the SDK Tools tab.
-
Check "Show Package Details" (bottom right corner).
-
Under Android SDK Build-Tools, look for 34.0.0.
-
Check the box next to 34.0.0
.
-
Click Apply to install it.
Common
✓ Node.js - Required to execute JavaScript code
✓ npm - Required to install NPM dependencies
● Metro - Metro Bundler is not running
Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✓ JDK - Required to compile Java code
✖ Android Studio - Required for building and installing your app on Android
✓ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✓ Android SDK - Required for building and installing your app on Android
8:
NOW ANDROID STUDIO
Part of logs from "npx react-native info"
IDEs:
Android Studio: Not Found
Part of logs from "npx react-native doctor"
✖ Android Studio - Required for building and installing your app on Android
Device Manager in Android Studio:
No comments:
Post a Comment