运行Android应用时出错 [英] Error in running android app

查看:108
本文介绍了运行Android应用时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是Andorid的新手.我已经开发了一个样本应用程序.当我尝试运行该应用程序时,它显示一个对话框
应用程序sample1意外停止.请重试".

我已经重新启动了应用程序很多次了.但是它一次又一次显示相同的消息..

请给我解决方案.

Hi to all,

I am new to andorid. i have developed a sample appliacation. when i am trying to run the application it shows a dialog box
"the application sample1 is stopped unexpectedly. please try again"

i have restarted the application so many times. but it display the same message again and again..

please give me the solution.

推荐答案

只要应用程序生成异常,Android就会向您显示此消息.查看您的开发环境的输出以获取确切的错误消息.

在Eclipse中,尝试使用DDMS透视图并查看LogCat窗口.异常消息应该在该窗口中,并为您提供有关该问题的线索.

如果您使用的是IntelliJ,则请查看Android LogCat窗口.

希望这会有所帮助.
Whenever an application generates an exception, Android will show you this message. Look at the output of your development environment for the exact error message.

In Eclipse try the DDMS perspective and look at the LogCat window. The exception message should be in that window and give you a clue about the problem.

If you are using IntelliJ just look at the Android LogCat window.

Hope this helps.


这篇关于运行Android应用时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆