react native - Android -- 踩坑篇
2020-07-09 本文已影响0人
_若无
- 错误描述:
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: spawn EACCES
at _errnoException (util.js:992:11)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
错误截图
解决办法:
cd android && chmod -R 777 ./gradlew && cd ..
- 错误描述
Native module RNSVGSvgViewManager tried to override SvgViewModule. Check the getPackages() method in MainApplication.java, it might be that module is being created twice. if the was your intention, set canOverrideExistingModule=ture
image.png
解决办法:
去掉getPackages中的add添加
image.png