Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的代码中有一个强制关闭错误......我已经将整个包裹onCreate()在一个 try catch 块中以查看它是什么......但这没有捕捉到它?
onCreate()
是否有可能在不抛出异常对象的情况下发生强制关闭?
谢谢。
我不认为这是可能的。你在eclipse中工作吗?查看 logcat(发布日志?)并查看 - 或者您可以在您怀疑它可能崩溃的位置附近放置一个断点,并使用调试逐步观察会发生什么。
如果您在其他 IDE 中,请尝试使用 bugsense 之类的方法并查看它报告的内容。