美文网首页
Execution failed for task ':app:

Execution failed for task ':app:

作者: 一直搬着砖 | 来源:发表于2017-03-03 16:46 被阅读0次

小米手机在使用React Native的时候会遇到如题的错误,我在论坛找到了答案,如下:
1、enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
2、Go back to Settings, Additional settings, Developer options and enable USB Debugging.
3、Connect your phone to your PC/Mac and on the phone authorize your computer
go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted
Try it now :)

相关文章

网友评论

      本文标题:Execution failed for task ':app:

      本文链接:https://www.haomeiwen.com/subject/lkdrgttx.html