app在其他手机正常启动,在oppo 一些手机上启动闪退,报找不到Application
java.lang.RuntimeException: Unable to instantiate application
具体原因:
是开启了Instant Run
解决方法:
File ----- Settings ------ Build,Execution,Deploymen ------ Instant Run
将选项 Enable Instant Run to hot swap code/resource changes on deploy(deffault enabled) 设置为未选中状态
oppo手机深受广大用户的喜爱,但对于开发者来说真是巨坑呀