开发者

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

开发者 https://www.devze.com 2023-04-11 01:54 出处:网络
Why does that happen?The program I am dealing with compiled (meaning no syntax errors) but it crashed in th开发者_JAVA百科e emulator.

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

精彩评论

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