简体   繁体   English

无法在Android模拟器(React Native)中重新加载代码

[英]Not possible to Reload code in Android emulator (React Native)

I have modified build.gradle in the project, after the finishing modifying it, it's not possible to reload code in the Android emulator using RR or using cmd+M. 我在项目中修改了build.gradle ,完成修改后,无法使用RR或cmd + M在Android仿真器中重新加载代码。 Any ideas how to fix it? 任何想法如何解决?

I have found the solution: 我找到了解决方案:

Clean project => Build => Edit Build Type => select Your Modules (app) => tab build Type => change Debugable to true

Sync and build again! 同步并重新构建! Now reloading using RR working again! 现在,使用RR重新加载即可正常工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM