简体   繁体   English

Android应用程序意外停止

[英]Android application stops unexpectedly

In the emulator, it shows me the infomation: The application my_app_name (process pack_name) has stoped unexpectedly.Pls try again What is the problem? 在模拟器中,它向我显示以下信息:应用程序my_app_name(进程pack_name)意外停止。请重试是什么问题?

Because i just add many field in the layout.xml file? 因为我只是在layout.xml文件中添加了许多字段?

I am a newbie in Android development. 我是Android开发的新手。 Thanks you for your help 谢谢你的帮助

Look in LogCat. 在LogCat中查看。 You probably have a stack trace in there. 您可能在那里有堆栈跟踪。 If you can't understand the stack trace post it here by editing your original question. 如果您不了解堆栈跟踪,请通过编辑原始问题在此处发布。

我只是添加一个新的xml文件来定义listview字段,然后更改主xml这是xml文件:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM