android 出错集

转载自:http://m.blog.csdn.net/article/details?id=7802403

问题1. java.lang.RuntimeException: Failed to register input channel. Check logs for details.

解决 这个问题应是程序加载(Launcher Pro) 时爆出的,LP是一个主页替代工具,它在程序加载时,当没有释放一些应当释放的资源就会出现

理解起来确有深奥之处,此问题没有真正解决,权当先记下会出现这种情况,备忘


问题2.An internal error occurred during: "Launching New_configuration".

Path for project must have only one segment.

解决: 在Eclipse中按照如下操作
Project -> Properties -> Run/Debug Settings:
1. select "Launching New_configuration"
2. Delete
3. OK

问题3. java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.

分析mInflater.inflate(R.layout.eg_refresh_message, this, false);

问题4.AndroidRuntime(1925): java.util.MissingFormatArgumentException: Format specifier: 40s

分析与解决:出现问题的地方 可能为 String m = String.format(msg, args);

在msg 中出现了%s 通配符,但在args 没有对应的值来匹配,就会报错,因此要检查msg 的内容,看是否出现% 类似的通配符


问题5. Activity com.xxx.XxxActivity has leaked [email protected]f8510that was originally added here

分析与解决:

重写Activity的onDestroy方法,在方法中调用dismiss来解除对ProgressDialog等的引用。

可参考以下分析的原因: http://www.cnblogs.com/royenhome/archive/2011/05/20/2051879.html

问题6.Installation error: INSTALL_FAILED_UID_CHANGED
[2014-08-31 10:18:00 - ***********] Please check logcat output for more details.
[2014-08-31 10:18:00 - ***********] Launch failed on device: 10.1.53.49:5555

.........

New package not yet registered with the system. Waiting 3 seconds before next attempt.

运行程序时出现此错误

可参考以下解决的方法:Try this Project->Clean in eclipse, and the deploy it again.

问题7. 在运行Java Web工程时,出现错误java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException

分析与解决: 出现这种问题是因为jar包不全,应该包含

commons-beanutils-1.8.3.jar
commons-lang-2.5.jar
ezmorph-1.0.6.jar
json-lib-2.3-jdk15.jar

commons-logging-1.1.1.jar

commons-collections 3.2

问题8. SDK更新后 运行程序报错Location of the Android SDK has not been setup in the preferences

解决方法 : 请参见 http://my.eoe.cn/833563/archive/4239.html

问题9. 2016-01-06 16:17:36.296: E/AndroidRuntime(10198): java.lang.IllegalStateException: Could not create an EGL context. eglCreateContext failed with error: EGL_SUCCESS

解决方法: 出现这个错误, 需要重启模拟器 或者设备

问题10:在使用 android-async-http-1.4.9.jar 包时,

报错: The type cz.msebera.android.httpclient.HttpResponse cannot be resolved. It is indirectly referenced from required .class files

解决方法:下载httpclient-4.3.6.jar包, 导进去即可.

在以下地址下载:http://mvnrepository.com/artifact/cz.msebera.android/httpclient/4.3.6


更多相关文章

  1. Android之HttpPost与HttpGet使用
  2. Android(安卓)开发中的 Handler ,Thread ,Message ,Runnable 的
  3. 【android】下载文件至本应用程序的file文件夹或者sdcard
  4. Android中3种方法实现back键动作
  5. Hybrid App开发问题记录
  6. Android(安卓)向用户申请权限-适配的PermissionsDispatcher简单
  7. Android设置个性化Dialog小图标的方法
  8. android 关于Only the original thread that created a view hie
  9. Android应用开发中如何进行单元测试

随机推荐

  1. CentOS7 上搭建多节点 Elasticsearch集群
  2. 分布式做系统 Elastic-Job-Lite 源码分析
  3. yarn-site.xml的部分资源配置参数,主要是
  4. 注册中心 Eureka 源码解析 —— 任务批处
  5. 分布式作业系统 Elastic-Job-Cloud 源码
  6. 分布式作业 Elastic-Job-Lite 源码分析
  7. VMWare 添加新磁盘,并挂载
  8. RocketMQ 安装
  9. 分布式作业系统 Elastic-Job-Cloud 源码
  10. 注册中心 Eureka 源码解析 —— EndPoint