sdk not found react native | react native sdk setup
Автор: kzr
Загружено: 2024-10-05
Просмотров: 2327
Описание:
In this video, I’m sharing a solution for the React Native SDK problem or (com.react.facebook error) I encountered. I hope this helps you as well!
[1]
Add the SDK path to your environment variable: Navigate to sdk/cmdline-tools/bin.
[2]
For Windows users: Create a local.properties file in your Android folder and add your SDK path like this:
sdk.dir=C:\\Users\\username\\AppData\\Local\\Android\\Sdk.
[3]
Download any other required files if you haven't done so already.
[4]
Restart Visual Studio Code to apply the changes.
[5]
Run the command:
npx react-native doctor
[5.1]
This should confirm that:
✓ ADB - Android device/emulator is set up.
✓ JDK - Required to compile Java code.
✓ Android Studio - Necessary for building and installing your app.
✓ ANDROID_HOME - Environment variable pointing to your Android SDK installation.
✓ Gradlew - Build tool required for Android builds.
✓ Android SDK - Required for building and installing your app.
[6]
Next, execute:
npx react-native run-android.
[7]
If you encounter issues like "same process running" or lock file errors, please restart your laptop or PC and then try running the project again.
-----
Thank you for watching! Don’t forget to follow for more tips. Good luck!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: