解决问题
文章平均质量分 56
年少的风
踏踏实实做好一件事,拒绝酱油!
展开
-
adb server is out of date. killing...
启动eclipse,运行android项目时adb server is out of date. killing......ADB server didn't ACK* failed to start daemon *error: unknown host service..The connection to adb is down, and a severe error has occu转载 2014-11-07 22:23:08 · 19449 阅读 · 1 评论 -
Unable to add window -- token null is not for an application
代码中出现如下错误:android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application分析:问题在于new AlertDialog.Builder(Context),虽然这里的参数是AlertDialog.Builder(Context context)原创 2014-11-07 22:23:17 · 19388 阅读 · 1 评论 -
eclipse不能启动Exception in AdtPlugin.start()
eclipse 在启动时闪退eclipse.buildId=M20130204-1200java.version=1.7.0_13java.vendor=Oracle CorporationBootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=zh_CNFramework arguments: -product com.andr转载 2015-12-31 10:50:27 · 1167 阅读 · 0 评论 -
判断Fragment是否可见,填坑
首先说明,Fragment虽然有onResume和onPause的,但是这两个方法是Activity的方法,调用时机也是与Activity相同,所以Fragment的onResume和onPause的使用基本很少,于是,Fragment是否可见就不能这样去判断了。 网上很多关于使用setUserVisibleHint的解决方案,下面给个链接: http://blog.csdn.net/jiang原创 2016-02-27 10:37:59 · 5753 阅读 · 1 评论 -
Volley缓存说明——一个请求两次回调
从上一篇文章Android 异步网络请求框架-Volley了解volley的一些出来过程,当然也包含网络请求和缓存处理的流程,但是在此需要单独做一些说明。 我在使用过程中忽略了一个事情,就是一个网络请求可能会有两次结果回调,其实这个在上一篇文章中也有说明,只是没有特别说明,很容易被忽略。 当进行网络请求时,先会判断缓存,当缓存还未过期,但是需要刷新时,volley会先将缓存回调(第一次),然后以原创 2016-02-01 14:05:31 · 2101 阅读 · 0 评论 -
AS2.2打包:release-stripped.ap_' specified for property 'resourceFile' does not exist
刚才打包一直提示下面的问题:Error:A problem was found with the configuration of task ':app:packageBAIDURelease'.> File 'D:\AndroidStudioProjects\CodeBlog\app\build\intermediates\res\resources-BAIDU-release-stripped原创 2016-09-22 10:27:08 · 5034 阅读 · 6 评论