Я уже загрузил устройство в Android Studio. Но это все еще не обнаруживает его как устройство. < /P>
Полный журнал: < /p>
Код: Выделить всё
$pnpm android
> @ android /home/maifee/codes/Free-Cart-Client
> react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1312 file(s) to forward-jetify. Using 16 workers...
info JS server already running.
/bin/sh: 1: adb: not found
info Launching emulator...
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app...
ERROR: JAVA_HOME is set to an invalid directory: /opt/jdk-21
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
ELIFECYCLE Command failed with exit code 1.
Full source code: https://github.com/maifeeulasad/Free-Cart-Client
Подробнее здесь: https://stackoverflow.com/questions/796 ... put-of-emu