![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Exception
文章平均质量分 62
Signal_Du
这个作者很懒,什么都没留下…
展开
-
You need to use a Theme.AppCompat theme (or descendant) with this activity
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.katherine.du.everydaystudy, PID: 8337 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.katherin原创 2017-08-07 20:58:01 · 538 阅读 · 1 评论 -
Fragment中调用getActivity()为null的问题
在使用fragment的时候经常会遇到getActivity()为null的情况。比如我在一个异步网路请求的回调中调用了getActivity()就会出现空指针问题。之前解决这个问题,通常都是直接加空指针判断来规避,但是这并没有真正解决问题。很多人都曾被这个问题所困扰,如果app长时间在后台运行,再次进入app的时候可能会出现crash,而且fragment会有重叠现象。如果系统内存不足转载 2017-08-03 16:01:09 · 710 阅读 · 0 评论 -
com.google.gson.JsonSyntaxException: com.google.gson.d.e: Unterminated object at line
com.google.gson.JsonSyntaxException: com.google.gson.d.e: Unterminated object at line 8 column 30 path $.function[0].logo at com.google.gson.Gson.java.lang.Object fromJson(com.google.gson.stream.Jso原创 2017-08-21 17:30:09 · 1578 阅读 · 0 评论 -
java.io.IOException: open failed: EINVAL (Invalid argument)
10-25 10:23:19.875 5600-5600/com.vipui.heatmap W/System.err: java.io.IOException: open failed: EINVAL (Invalid argument)10-25 10:23:19.882 5600-5600/com.vipui.heatmap W/System.err: at java.io.Fil原创 2017-10-25 10:27:01 · 1436 阅读 · 0 评论 -
Error:Failed to open zip file.
Error:Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)解决方法:第一步:在AndroidStudio中的Show log in Finder中,查看log日志,在文档中搜索“https://s...原创 2018-03-18 19:29:33 · 411 阅读 · 0 评论 -
git crlf换行符的问题解决
问题:You are about to commit CRLF line separators to the Git repository.It is recommended to set the core.autocrlf Git attribute to input and and avoid line separator issues.问题描述:项目组现在用git做版本控制,使用中遇到不同平...转载 2018-03-18 19:45:28 · 15751 阅读 · 0 评论 -
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern:%刷卡
在使用URLDecoder.decode方法进行解析的时候,解析时的字符串是“20%刷卡金”,出现了下面的问题:java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern:%刷卡我们进入decode方法查看源码,会发现对 % 和 + 这两个字符做了特殊处理。解决方法(参照A...原创 2018-05-31 09:39:08 · 2860 阅读 · 0 评论