exception
杨筱毅
路漫漫其修远兮,吾将上下而求索
展开
-
W/System.err﹕ java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads
异常:W/System.err﹕ java.lang.IllegalArgumentException: Unknown URL content://downloads/my_downloads原文位置:http://stackoverflow.com/questions/21551538/how-to-enable-android-download-manager问题描述翻译 2014-11-19 09:15:23 · 16915 阅读 · 2 评论 -
Volley使用时InterruptedIOException,NoConnectionError
类似问题链接random com.android.volley.NoConnection error, java.io.InterruptedIOException 在项目中使用了Volley,做了一下简单封装,然后犯了个错误。。。 代码如下: /** * @param tag 标识 * @param networkLostTouch 无网络访问时的原创 2015-08-12 18:52:35 · 9281 阅读 · 7 评论 -
Crash in ListView at AbsListView.obtainView
Problem:java.lang.NullPointerException at android.widget.AbsListView.obtainView(AbsListView.java:2163) at android.widget.ListView.makeAndAddView(ListView.java:1831)原创 2015-05-28 20:07:03 · 906 阅读 · 0 评论 -
Android MediaPlayer Error (-38, 0) “stop called in state 0”
I have looked at various different websites looking for a solution for this problem in my code. It is a basic audio player with 3 buttons: play, pause and stop. Play and pause work ok and so does stop转载 2015-04-26 10:55:11 · 11721 阅读 · 0 评论 -
Duplicate files copied (Android Studio)
In my project I use httpcore and httpmime libraries from Apache. After update Android Studio to 0.4.0 I have this issue building my project:Duplicate files copied in APK META-INF/DEPENDENCIESFile 1: /转载 2015-04-21 18:33:10 · 2014 阅读 · 0 评论 -
Duplicate files copied in APK META-INF/LICENSE.txt解决方式
异常表现形式:Error:Gradle: Execution failed for task ':app:packageDebug'.> Duplicate files copied in APK META-INF/LICENSE.txt File 1: /home/xiaoyee/tools/gradle/gradle-2.2.1/caches/modules-2/files-2.1/j转载 2015-04-03 10:08:40 · 12132 阅读 · 0 评论 -
Java避免空指针
Java避免空指针====1.空指针引起的原因----* 调用空对象的方法* 访问或更新空对象的变量* 获取空集合的长度* 访问或更新空集合中的内容* 抛出空的Throwable对象* 同步空对象2.避免空指针----为避免空指针,应当在使用之前确保对其做了适当的初始化。1. 比较字符串时,模板在前,如: > Sting str = null; > if("te原创 2015-01-26 10:24:30 · 4926 阅读 · 0 评论 -
[aidl] terminate called after throwing an instance of 'std::logic_error' [aidl] what(): basic_string
原文链接使用ant编译android程序时,报错如下[aidl] terminate called after throwing an instance of 'std::logic_error'[aidl] what(): basic_string::_S_construct null not valid解决方法:请检查你的 src/**/*.aidl 中是转载 2015-01-21 15:09:41 · 2918 阅读 · 0 评论 -
Error:(16, 0) Gradle DSL method not found: 'runProguard()'
Exception:Error:(16, 0) Gradle DSL method not found: 'runProguard()'Possible causes:The project 'RetrofitExample-master' may be using a version of Gradle that does not contain the method.Gradle se原创 2015-01-13 09:31:52 · 4842 阅读 · 3 评论 -
java---避免空指针
原文链接java.lang.NullPointerException – How to handle Null Pointer ExceptionIn Java, a special null value can be assigned to an object’s reference and denotes that the object is currently poi转载 2014-12-02 10:08:10 · 1160 阅读 · 0 评论 -
Error parsing XML: unbound prefix on XXX解决办法
在XML文件中使用了自定义的域名空间()转载 2014-11-20 17:45:27 · 9822 阅读 · 4 评论 -
Gradle peer not authenticated以及gradle依赖查找
Gradle编译时报错:gradle:peer not authenticated 处理方法: Change your repository syntax to one of the followingrepositories { jcenter { url "http://jcenter.bintray.com/" }}repositories { m原创 2015-04-03 09:39:04 · 22914 阅读 · 7 评论