React native 在运行时报以下异常:
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> java.io.IOException: Could not delete path 'F:\RN\RN_Project\AwesomeProject\android\app\build\generated\source\r\debug\android\support'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED解决办法:
用Android Studio 打开该项目 然后点击run 和app左边的那个锤子 按钮, 重新编译程序, 重新用命令行运行该程序即可,切记不要用Android Studio 直接RUN,程序会跑不起来!
采用cmd命令号,输入 react-native run-android 回车即可!
本文介绍了解决React Native项目在运行过程中出现的特定异常的方法。通过使用Android Studio重新编译项目,并采用命令行方式运行程序,可以有效解决Execution failed for task...的错误。
2084

被折叠的 条评论
为什么被折叠?



