简体   繁体   English

Windows 错误:在模拟器上运行 React Native 项目时,spawnSync ./gradlew EACCES 错误

[英]Windows error :spawnSync ./gradlew EACCES error when running react native project on emulator

Am trying to run react native using react-native run-android but I get the above error.我正在尝试使用react-native run-android运行 react native,但出现上述错误。 I was having issues getting my detached expo to run on android emulator and I keep getting this error Error running app. Have you installed the app already using Android Studio? Since you are detached you must build manually. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=....我在让我的独立博览会在 android 模拟器上运行时遇到问题,并且我不断收到此错误Error running app. Have you installed the app already using Android Studio? Since you are detached you must build manually. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=.... Error running app. Have you installed the app already using Android Studio? Since you are detached you must build manually. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=.... Error running app. Have you installed the app already using Android Studio? Since you are detached you must build manually. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=.... After hours of futile effort i tried running react-native run-android but I keep getting the above error (title). Error running app. Have you installed the app already using Android Studio? Since you are detached you must build manually. Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=....经过数小时徒劳的努力,我尝试运行react-native run-android但我不断收到上述错误(标题) . solution online spawnSync ./gradlew EACCES error when running react native project on emulator udara shows its a permission issue and that it can be resolved with chmod 755 android/gradlew since am using a windows system i tried ICACLS "android/gradlew" /grant:r "Administrator:(F)" /C but I still get the same error.解决方案在线spawnSync ./gradlew 在模拟器 udara 上运行 react native 项目时出现 EACCES 错误显示其权限问题,并且可以使用chmod 755 android/gradlew解决,因为我使用的是 Windows 系统我尝试过ICACLS "android/gradlew" /grant:r "Administrator:(F)" /C但我仍然遇到同样的错误。 am not really good with icacls so I may be wrong.我对 icacls 不太好,所以我可能是错的。 any assistance is highly appreciated.任何帮助表示高度赞赏。 My emulator is working perfectly cause i did a adb devices check and its their.我的模拟器工作正常,因为我做了adb devices检查及其检查。 I even have the emulator already open on my window我什至已经在我的窗口上打开了模拟器

在你的根项目 react-native 中打开终端并输入: cd android && chmod -R 777 ./gradlew && cd ..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM