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...
Configure project :app Unable to detect AGP versions for included builds. All projects in the build should use the same AGP version. Class name for the included build object: org.gradle.composite.internal.DefaultIncludedBuild$IncludedBuildImpl_Decorated.
Configure project :react-native-reanimated Native libs debug enabled: false Android gradle plugin: 7.0.4 Gradle: 7.3.3 building Reanimated2
Task :react-native-reanimated:buildCMakeDebug C/C++: ninja: Entering directory
/Users/junyoungkr/Desktop/ppp/node_modules/react-native-reanimated/android/.cxx/Debug/0f176a2w/armeabi-v7a' C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here C/C++: ninja: Entering directory/Users/junyoungkr/Desktop/ppp/node_modules/react-native-reanimated/android/.cxx/Debug/0f176a2w/arm64-v8a' C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here C/C++: ninja: Entering directory/Users/junyoungkr/Desktop/ppp/node_modules/react-native-reanimated/android/.cxx/Debug/0f176a2w/x86' C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here C/C++: ninja: Entering directory/Users/junyoungkr/Desktop/ppp/node_modules/react-native-reanimated/android/.cxx/Debug/0f176a2w/x86_64' C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:357:11: note: remove std::move call here C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] C/C++: ../../../../src/main/cpp/NativeProxy.cpp:360:11: note: remove std::move call here
Task :app:installDebug Installing APK 'app-debug.apk' on 'Pixel_4_API_33(AVD) - 13' for app:debug Installed on 1 device.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 26s 195 actionable tasks: 8 executed, 187 up-to-date info Connecting to the development server... warn Failed to connect to development server using "adb reverse": spawnSync Users/junyoungkr/Library/Android/sdk/platform-tools/adb ENOENT info Starting the app... error Failed to start the app. Error: spawnSync Users/junyoungkr/Library/Android/sdk/platform-tools/adb ENOENT at Object.spawnSync (node:internal/child_process:1110:20) at Object.spawnSync (node:child_process:857:24) at module.exports.sync (/Users/junyoungkr/Desktop/ppp/node_modules/execa/index.js:334:30) at tryLaunchAppOnDevice (/Users/junyoungkr/Desktop/ppp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/tryLaunchAppOnDevice.js:58:22) at /Users/junyoungkr/Desktop/ppp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:119:39 at Array.forEach () at runOnAllDevices (/Users/junyoungkr/Desktop/ppp/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:117:48) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Command.handleAction (/Users/junyoungkr/Desktop/ppp/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:192:9) info Run CLI with --verbose flag for more details.
When i try ❯ npx @react-native-community/cli doctor
✖ Android SDK - Required for building and installing your app on Android
- Versions found: N/A
- Version supported: 31.0.0
and this is my android SDK version
I don't know why the error occurs...