Hello world android app:模拟器崩溃 [英] Hello world android app : emulator crash

查看:163
本文介绍了Hello world android app:模拟器崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是android新手。我正在尝试在android上学习应用程序开发。我已经安装了Android studio 1.5.1 API 23.当我运行简单的hello world应用程序时,它失败并出现以下错误。什么可能错误?



错误:仿真器x86.exe已停止工作。



我尝试了什么:



我需要重新安装Android工作室吗?



我在64位窗口7 OS上运行它?

I am new to android. I am trying to learn application development on android. I have installed Android studio 1.5.1 API 23. When I run simple hello world application it fails with error below. What could possibly error?

Error: Emulator x86.exe has stopped working.

What I have tried:

Do I need to reinstall the android studio?

I am running it on 64 bit window 7 OS?

推荐答案

创建一个自定义writelog函数,您可以在其中在模拟器存储位置编写异常日志文件

使用try {//你的代码}

catch(Exception ex)

{

youwritelog(ex.toString()) ;

}

当你调用helloworld函数它写日志并将文件保存在你的模拟器存储位置然后检查你在崩溃时有什么异常!!!





最好的问候

Omer Iqbal
create a custom writelog function in which you can write exception log file in your emulator storage location
using try { //your code }
catch(Exception ex)
{
youwritelog(ex.toString());
}
when u call helloworld function it write log and save file in your emulator storage location then check what exception you have in crash!!!


Best Regards
Omer Iqbal


这篇关于Hello world android app:模拟器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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