the application has stopped unexpected。please try again错误提示以及logcat不能打印解决
2012-04-10 14:29
671 查看
1. 运行程序后弹出: The application (……)has stopped unexpectedly.
Please try again. 然后会要求强制退出。
这是一个经典错误, Socket不能对外连接,具体错误不会被报出,也要看情况而定,比如是网络的权限没开,或者是访问GPS的权限没有开,仔细检查一下,特别是AndroidManifest.xml里面的内容
今天我的一个程序在里面加上
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
这两个权限再次运行程序,就OK了,具体的问题依照具体情况而定咯。
2.logcat不能打印信息
这个主意原因就是DDMS中没有选定device
1.是否为你的工程指定了模拟器
2.是否开启了多个模拟器。如果是,则在DDMS中选择你要启动的模拟器:
打开Device窗口:DDMS-->Device 然后选择你要启动的模拟器,打开LogCat窗口便可以看到打印信息。
Please try again. 然后会要求强制退出。
这是一个经典错误, Socket不能对外连接,具体错误不会被报出,也要看情况而定,比如是网络的权限没开,或者是访问GPS的权限没有开,仔细检查一下,特别是AndroidManifest.xml里面的内容
今天我的一个程序在里面加上
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
这两个权限再次运行程序,就OK了,具体的问题依照具体情况而定咯。
2.logcat不能打印信息
这个主意原因就是DDMS中没有选定device
1.是否为你的工程指定了模拟器
2.是否开启了多个模拟器。如果是,则在DDMS中选择你要启动的模拟器:
打开Device窗口:DDMS-->Device 然后选择你要启动的模拟器,打开LogCat窗口便可以看到打印信息。
相关文章推荐
- the application has stopped unexpected。please try again的解决办法
- the application has stopped unexpected。please try again
- android提示错误: The process android.process.acore has stopped unexpectedly.Please try again
- the application has stopped unexpected。please try again
- 跳转出现错误 the application test has stopped unexpectedly 的解决
- Android跳转页面出现THe Application has stopped unexpectedly,please try again
- The application xxx has stopped unexpectedly. Please try again" in RELEASE mode
- 目前遇到的这个错误的“The application *** hans stopped unexpectedly. Please try again.”的原因。
- 【Android】The application has stopped unexpectedly.Please try again.
- The application has stopped unexpectedly, please try again.
- android:The application has stopped unexpectedly, please try again.
- the applicatein has stopped unexpected .please try again
- 【Android】The application has stopped unexpectedly.Please try again.
- Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again.解决方法
- Application has stopped unexpectedly. Please try again." android解
- anroid开发遇到问题:跳转出现错误 the application xxx has stopped unexpectedly
- Linux下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again.解决方法
- configure: error: Please fix the library issues listed above and try again错误解决方法
- CentOS7 通过VNC 下安装oracle数据库提示DISPLAY not set. Please set the DISPLAY and try again.解决方法
- 安卓学习之调试 the application has stopped unexpected。please try again 的错误