حجت
6 سال پیش توسط حجت مطرح شد
8 پاسخ

مشکل اجرا پروژه react native

سلام دوستان من برای اولین بار یک پروژه ری اکت نیتیو رو نصب کردم و قصدم این هست که برای اجرا برنامه از اتصال گوشی به اندروید استودیو استفاده کنم ولی زمانی که از دستور react-native run-anroid برای اجرا پروژه استفاده میکنم در پنجره cmd بعد از این دستور به این خط بر میخورم

:app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> java.io.IOException: Could not delete path 'C:\Users\hojat\Desktop\myapp\android\app\build\generated\source\r\debug\android\support\v۷'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: ۵۵.۱۳ secs
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

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

وارد دایرکتوری زیر بشید و فولدر build رو پاک سازی کنید

C:\Users\hojat\Desktop\myapp\android\app\build

madadi
@madadi 6 سال پیش مطرح شد
0

باز این ارور به وجود اومد

09:51 AM    Gradle sync failed: Unable to start the daemon process.
                    This problem might be caused by incorrect configuration of the daemon.
                    For example, an unrecognized jvm option is used.
                    Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.html
                    Please read the following process output to find out more:
                    -----------------------
                    Error occurred during initialization of VM
                    Could not reserve enough space for 1048576KB object heap
                    OpenJDK Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
                    Consult IDE log for more details (Help | Show Log)

حجت
@hojatdehnavi 6 سال پیش مطرح شد
0

ببخشید سوال قبل رو با اکانت دیگه پرسیدم که رفع شد

الان من برای اجرا برنامه از اتصال موبایل به اندروید استودیو میخوام استفاده کنم ولی اجرا نمیشه . باید بگم که اندروید گوشی 4.4.4 هست .
یک ارور هم میده به این شرح:

 Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 13s
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

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

نمیتونه به دیوایس شما متصل بشه سعی کنید ابتدا بر روی یک شبیه ساز از طریق اندروید استودیو تو سیستمون اجرا کنید . ببینید اجرا میشه یا نه


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

سلام
من دقیقا موقع نصب همین ارور را داشتم .کاری که کردم JDK رو دوباره نصب کردم و مشکل حل شد دوباره JDK رو نصب کنید و مراحل روبرید امیدوارم مشکلتون حل بشه.


Bijan Behvandi
@behsharp 6 سال پیش آپدیت شد
0

سلام
من تمام مراحل نصب رو پیش رفتم در مرحله آخر خطای زیر رو میگیرم پروژه روی شبیه ساز بالا میاد ولی وقتی ریلود میکنم خطا میده
http://s9.picofile.com/file/8325591142/Screenshot_1525613896.png

http://s9.picofile.com/file/8325592492/cmd.jpg


الهه سلیمانی
تخصص : برنامه نویس
@elahe.soleimani 4 سال پیش مطرح شد
0

سلام منم نمیتونم از ریکت رو سیستمم اجرا بگیرم. سیستمم مک هست و میخوام اندروید اجرا بگیرم، emulator هم run هست و حتی تو لیست adb devices نشون میده ولی موقع اجرا react-native run-android خطا زیر رو میده

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:

طبق داکیومنتش همه کارها رو انجام دادم
ورژن 5.8 هم نصب کردم.
باید چیکار کنم یا چی رو چک کنم؟


مجید درویش نژاد
تخصص : React js and native Developer
@majidmagic 4 سال پیش مطرح شد
0

@elahe.soleimani
احتمالا تنظیمات مربوط به path رو توی bash درست انجام نشده
تا جای ممکن با terminal ادیت کنید نه با code editor


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

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