آموزش جاوااسکریپت انجمن ها react native اجرا نشدن react-native run-android پاسخ به: اجرا نشدن react-native run-android

#27521
mobinsly
مشارکت کننده

سلام
خسته نباشید برای من هم یه همچین اروری میده و اصلا اجرا نمی کنه
اولین بارمم هست که می خوام اجراش کنم،البته ارورش یکم فرق داره:

D:\React Native\project\test2>react-native run-android
Starting JS server…
Building and installing the app on the device (cd android && gradlew.bat installDebug)…
Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use –status for details

FAILURE: Build failed with an exception.

* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().

* 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 25s
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

Command failed: gradlew.bat installDebug

Error: Command failed: gradlew.bat installDebug
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:13)
at runOnAllDevices (D:\React Native\project\test2\node_modules\react-native\local-cli\runAndroid\runAndroid.js:299:19)
at buildAndRun (D:\React Native\project\test2\node_modules\react-native\local-cli\runAndroid\runAndroid.js:135:12)
at isPackagerRunning.then.result (D:\React Native\project\test2\node_modules\react-native\local-cli\runAndroid\runAndroid.js:65:12)
at process._tickCallback (internal/process/next_tick.js:68:7)