开发者

When my Android program compiles but the emulator gives me the error of "Stopped Unexpectedly"

Why does that happen? The program I am dealing with compiled (meaning no syntax errors)

but it crashed in th开发者_JAVA百科e emulator.

What are the usual situations where something like that happen?

Thanks a lot


Your application is syntactically correct, but that doesn't mean that it's correct!!
Probably your application is trying to access a resource with the wrong name or not created yet.
Use log and/or toast to debug your app and try to understand the part or line that causes the crash.


Make sure you've added your starting activity to the Manifest.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜