من تمامی مراحل رو پشت سر هم و با دقت انجام دادم که توی اموزش ریاکت نیتو اومده بود ، اما دوتا مشکل داشتم که یکی مربوط می شد به اندروید استدیو که نسخه بنده با نسخه اقای موسوی فرق میکرد و در قسمت sdk tools نسخه ۲۳ رو پیدا نکردم و مجبورن فقط بهم نسخه ۲۹ رو داد
و حالا در اخر در لحضه بیلد کردن اپم چنین خطایی دارم
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found ۹۶۰ file(s) to forward-jetify. Using ۱۲ workers...
info JS server already running.
'adb' is not recognized as an internal or external command,
operable program or batch file.
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.
FAILURE: Build failed with an exception.
Connecting to Daemon
- What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in ۶۰۶ms
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.bat app:installDebug -PreactNativeDevServerPort=۸۰۸۱
FAILURE: Build failed with an exception.
What went wrong:
Could not initialize class org.codehaus.groovy.runtime.InvokerHelper
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in ۶۰۶ms
at makeError (C:\Users\Alteen Rayane\Desktop\myapp\node_modules\execa\index.js:۱۷۴:۹)
at C:\Users\Alteen Rayane\Desktop\myapp\node_modules\execa\index.js:۲۷۸:۱۶
at processTicksAndRejections (internal/process/task_queues.js:۹۷:۵)
at async runOnAllDevices (C:\Users\Alteen Rayane\Desktop\myapp\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:۹۴:۵)
at async Command.handleAction (C:\Users\Alteen Rayane\Desktop\myapp\node_modules\react-native\node_modules\@react-native-community\cli\build\index.js:۱۸۶:۹)
آیا مایل به ارسال نوتیفیکیشن و اخبار از طرف راکت هستید ؟