![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android 报错异常
面币思过
晚起的菜鸟
展开
-
eclipse 新建项目报错:The import android.support.v7.app cannot be resolved
在使用eclipse新建项目时报错: Found 2 versions of android-support-v4.jar in the dependency list, but not all the versions are identical (check is based on SHA-1 only at this time). All versions of the librari原创 2016-03-03 11:18:20 · 586 阅读 · 0 评论 -
eclipse中使用RecyclerView报错:Error inflating class android.support.v7.widget.RecyclerView
在eclipse中使用RecyclerView就算导入v7包依然报:The import android.support.v7.widget.RecyclerView cannot be resolved。 解决办法是:进入sdk\extras\android\support\v7\recyclerview\libs目录下找到android-support-v7-recyclerview.jar原创 2016-03-22 15:01:07 · 3218 阅读 · 0 评论 -
Android网络请求报错:java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer)
在做文件下载是请求报错:java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) 在网上找了半天 有人总结了三个原因: 1、服务器中断; 2、网络连接非常慢的时候 3、下载大文件时,频繁请求服务器,请求的端口一直被占用 解决此问题的办法网上有说Range头设置不对的但是我的问题依然原创 2016-05-27 16:46:25 · 19752 阅读 · 3 评论 -
android open failed: EACCES (Permission denied)
问题: 在android4.1的系统上打开本地文件时 报错:/storage/sdcard0/DCIM/Camera/00775225.pdf: open failed: EACCES (Permission denied) ,权限都在配置文件中添加了。 原因: 在开发时用USB线连接真机调试导致SD卡无法使用。 解决办法: 添加了SD卡状态的判断: if (Environment.原创 2016-09-28 11:51:01 · 3258 阅读 · 0 评论 -
ActivityNotFoundException: No Activity found to handle Intent
问题: 在android4.1系统上打开本地的PDF文件报错:android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW cat=[android.intent.category.DEFAULT] dat=file:///storage原创 2016-09-28 12:00:53 · 1560 阅读 · 0 评论