search

Home  >  Q&A  >  body text

Android APP 调试过程中遇到的问题。

调试过过程中APP安装完启动后有的时候会异常退出,报这个错误。有的时候可以直接启动。查找不到原因。
网上说把commit方法替换成commitAllowingStateLoss() 也无效。

天蓬老师天蓬老师2773 days ago467

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 17:50:55

    I basically ignored it. It only appeared during debugging and compilation. It would not appear during normal APP overlay installation. Similar errors would appear in EC in the past. Did you use Instant Run?

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-17 17:50:55


    It means that your call is called near the end of the activity life cycle.
    It is estimated that one of your asynchronous messages (the message that triggers commit) arrives at the wrong time. You should handle this situation , when you cannot commit, you need to skip it.

    reply
    0
  • Cancelreply