ابر سیاه
6 سال پیش توسط ابر سیاه مطرح شد
2 پاسخ

خطا در شبیه ساز

سلام دوستان
من در دوره react native فیلم
https://roocket.ir/series/react-native-tutorial/episode/1
رو مشاهده کردم و تمامس مراحل رو انجام دادم ولی پس از وارد کردن
react-native run-android
با خطای زیر روبه رو می شوم

Scanning folders for symlinks in F:\reactnative\myapp\node_modules (20ms)
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat installDebug)...

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine java version from '9.0.1'.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Could not install the app on the device, read the error above for details.
    Make sure you have an Android emulator running or a device connected and have
    set up your Android development environment:
    https://facebook.github.io/react-native/docs/android-setup.html

حال چه کنم ؟
راه حل چیست ؟
لطفا به صورت کامل توضیح دهید


ثبت پرسش جدید
سجاد
تخصص : برنامه نویس
@sajaddp 6 سال پیش مطرح شد
0

سلام

آیا برای حل مشکل Gradle رو آپدیت نکردید؟ چون نسخه 4.1 ظاهرا با جاوا مسئله داشته و احتمال میدم ( مطمئن نیستم ) که روی سیستم شما این نسخه نصب هست.


Maryam GSH
@m.geraeli.sh 6 سال پیش آپدیت شد
0

منم تقریبا همین مشکلو دارم
FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine java version from '9.0.4'.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Could not install the app on the device, read the error above for details.
    Make sure you have an Android emulator running or a device connected and have
    set up your Android development environment:
    https://facebook.github.io/react-native/docs/getting-started.html

آیا ممکنه به emulator ربط داشته باشه؟ اخه تواندروید استدیو این هشدار میاد
Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.


مشکلم حل شد
اشکال از نسخه JDK بود که 9 رو نمی شناخت
نسخه 8 رو نصب کردم مشکل حل شد و اجرا گرفتم


برای ارسال پاسخ لازم است وارد شده یا ثبت‌نام کنید

ورود یا ثبت‌نام