最近,mac book pro 升级了系统 ,再用Android Studio 打开 React-Native 项目 ,发现报错 编译不过,弄了好几天 ,一点头绪没有。报错如下面截图:
感觉一直是时辰未到,解决不了。今天再次尝试,在机缘巧合 终于找到如下解决方式。
It's because android studio couldn't find node and should run through terminal.
If you are using Mac you can run Android studio using This command in terminal
1. Run this open -a /Applications/Android\ Studio.app
2. Then sync Gradle
And this will solve the problem.
至此 又可以愉快的玩啥了