解决 Android studio 打开 React Native 项目出现 error: No value has been specified for property ‘manifestOutputDirectory’.
最近用 Android Studio 打开 react native 项目时 Build 出现如下错误:
ERROR: No value has been specified for property 'manifestOutputDirectory'.
![解决 Android studio 打开 React Native 项目出现 error: No value has been specified for property ‘manifestOutputDirectory’.-天真的小窝](https://bin.zmide.com/wp-content/uploads/2019/11/2019111410351149-1024x173.png)
解决方案如下:
![解决 Android studio 打开 React Native 项目出现 error: No value has been specified for property ‘manifestOutputDirectory’.-天真的小窝](https://bin.zmide.com/wp-content/uploads/2019/11/2019111410373636.png)
点击 Preferences…
![解决 Android studio 打开 React Native 项目出现 error: No value has been specified for property ‘manifestOutputDirectory’.-天真的小窝](https://bin.zmide.com/wp-content/uploads/2019/11/2019111410401392-1024x683.png)
选择 Experimental 将 Only sync the active variant. 取消选中然后点击 Apply 应用设置就好了
![解决 Android studio 打开 React Native 项目出现 error: No value has been specified for property ‘manifestOutputDirectory’.-天真的小窝](https://bin.zmide.com/wp-content/uploads/2019/11/2019111410430334.png)
然后点击重新 Build,你就会成功了,成功之后可以再打开这个 Only sync the active variant. ( 听说这个功能是可以加速编译,不过关了也没事 )