
异常Exception
当富网络
当富网络 gzdangfu dot com
展开
-
运行测试报错Caused by: IllegalStateException: Shutdown in progress
运行测试报错Caused by: java.lang.IllegalStateException: Shutdown in progress测试用例编写/** * Bestpay.com.cn Inc. * Copyright (c) 2011-2018 All Rights Reserved. */package com.bestpay.{moudle}.service;...原创 2018-07-13 12:52:17 · 16998 阅读 · 0 评论 -
com.alibaba.fastjson.JSONException: exepct '[', but {, type : class com.lvche.pocketscore.bean2.Room
com.alibaba.fastjson.JSONException: exepct '[', but {, type : class com.lvche.xxx.bean2.Room.XXXX直接翻译过来就是,异常出现在 中括号 “[” 的地方,我要的是中括号,你却给我一个 花括号“{”,出现不匹配的类型为XXXX.java换言之,就是我要的是一个List(中括原创 2017-06-02 18:59:41 · 32871 阅读 · 0 评论 -
解决EventBus中接收方法中无法更新UI的问题
from : http://www.th7.cn/Program/Android/201704/1153607.shtml问题比如界面MainActivity向界面SecondActivity发送消息时,界面S调用接收方法,可以接收界面M发送的消息,输出台log可以打印出消息内容,但是无法更新UI。MainActivity Button eventB转载 2017-06-06 21:11:50 · 3722 阅读 · 1 评论 -
invalidate() 后 不走onDraw() 方法 WheelView滚轮控件问题
在加载网络数据后WheelView滚轮控件,第一次进入可以看到页面控件显示出数据,然后,后边进入activity后,均没有数据显示出来我的adapter是这样处理的public final void setAdapter(WheelAdapter adapter) { this.adapter = adapter; remeasure(); in原创 2017-05-22 11:12:00 · 1290 阅读 · 0 评论 -
android manifest merge failed 依赖第三方库存在 android:name=".VideoApplication"
错误描述:android manifest merge failed 依赖第三方库存在 android:name=".VideoApplication"导入阿里巴巴直播播放器库,原来的demo存在一个android:name=".VideoApplication"自己的app demo中也有自定义Application类,就会出现报错andr原创 2017-05-05 16:58:17 · 1131 阅读 · 0 评论 -
uses-sdk tools:overrideLibrary uses-sdk:minSdkVersion 1 cannot be smaller than version 9
android studio 使用第三方库合并出现minSdkVersion 问题问题一:Error:Execution failed for task ':app:processDebugManifest'.> Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 21 de原创 2017-05-03 17:51:38 · 2932 阅读 · 0 评论 -
tld xml cvc-complex-type.2.4.a: Invalid content was found starting with element
具体解决:cvc-complex-type.2.4.a: Invalid content was found starting with elementhttp://blog.youkuaiyun.com/niu_hao/article/details/25250213原创 2017-04-18 19:16:07 · 612 阅读 · 0 评论 -
AppCompat does not support the current theme features
报错日志log:04-28 10:55:57.972 19383-19383/? E/Zygote: MountEmulatedStorage()04-28 10:55:57.972 19383-19383/? E/Zygote: v204-28 10:55:57.982 19383-19383/? E/SELinux: [DEBUG] get_category: variable sei原创 2017-04-28 11:04:10 · 2097 阅读 · 0 评论 -
Android Studio(Gradle) 解决库依赖 冲突问题
from : http://blog.youkuaiyun.com/u010944680/article/details/52212709Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes; UNEXPECTED TOP-LEVEL EXCEPT转载 2017-03-21 12:03:54 · 1028 阅读 · 0 评论 -
【已解决】Android中给EditText添加的TextWatcher中的onTextChanged始终被调用(被执行多次)
【问题】Android中,给一个EditText添加了TextWatcher,其中实现了onTextChanged,但是出现个问题:对于EditText,只修改了一次(比如用删除键删除一个字符)但是onTextChanged却始终被调用被调用了多次。相关部分的代码为:TextWatcher mVarValueTextWatcher; mVarValueT转载 2017-01-17 16:23:00 · 6268 阅读 · 0 评论 -
UnsatisfiedLinkError && NDK integration is deprecated in the current plugin. AS总so JNILIbs加载问题
问题:Eclipse项目迁移到android studio中后,出现报错问题:1.UnsatisfiedLinkError .2.Error:(197, 0) NDK integration is deprecated in the current plugin.Consider trying the new experimental pluginSet原创 2016-12-19 10:48:35 · 1035 阅读 · 0 评论 -
Eclipse 在异常关闭后,启动闪退的解决办法
from : http://blog.sina.com.cn/s/blog_8af106960102vc6g.html拟解决方案一:(成功)http://blog.youkuaiyun.com/zgf1991/article/details/37961169最好解决办法: 删除文件 [workspace]/.metadata/.plugins/org.eclipse.e转载 2016-11-16 12:00:36 · 518 阅读 · 0 评论 -
android 使用游标获取 android.database.CursorIndexOutOfBoundsException:Index -1
具体报错如下 :Thread ID: 15908 Thread Name: pool-12-thread-1 Time: 2016-09-29 17:57:39:43 FromClass: CrashHandler > ↓↓↓↓exception↓↓↓↓java.lang.RuntimeException: Failure delivering result ResultInfo{who=n原创 2016-09-29 18:15:14 · 3817 阅读 · 0 评论 -
解决okhttp报java.lang.IllegalStateException: closed,java.lang.IllegalStateException: closed
from : http://blog.youkuaiyun.com/x707669224/article/details/56280270解决okhttp 报java.lang.IllegalStateException: closed,java.lang.IllegalStateException: closed,原因为OkHttp请求回调中response.body().st转载 2017-06-08 19:54:00 · 1729 阅读 · 0 评论 -
华为手机6.0系统系列崩溃,情况未明
报错如下:06-20 20:34:58.069 16120-16627/com.lvche.pocketscore I/System: core_booster, getBoosterConfig = false06-20 20:34:58.099 16120-16120/com.lvche.pocketscore I/Choreographer: Skipped 30 frames! T原创 2017-06-20 20:58:24 · 9784 阅读 · 2 评论 -
Maven 项目依赖问题解决--ZipException: invalid LOC header (bad signature)
报错日志六月 09, 2018 6:38:46 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:...原创 2018-06-09 22:32:13 · 10367 阅读 · 0 评论 -
tomcat 启动保错,具体由于maven添加jar包,jdk版本不一致 dependency <scope>provided</scope>
tomcat 启动保错,具体由于maven添加jar包,jdk版本不一致 dependency <scope>provided</scope>错误:五月 21, 2018 3:20:58 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Serv...原创 2018-05-21 15:26:06 · 1046 阅读 · 2 评论 -
报错:commons/lang3/StringUtils lang/exception/NestableRuntimeException
环境:javaweb报错类型:java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtilsjava.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException出错地方:具体在:JsonOb原创 2018-01-19 18:31:03 · 641 阅读 · 0 评论 -
android studio 3.0 升级 项目遇到的问题更改
android studio 3.0版本升级问题修改:===》 问题一Error:Cannot choose between the following configurations of project :pickerview: - debugApiElements - debugRuntimeElements - releaseApiElements - rel原创 2017-10-26 15:29:53 · 11640 阅读 · 0 评论 -
com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
报错如下:Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge原创 2017-11-13 11:36:33 · 16664 阅读 · 1 评论 -
Command `run-android(ios)` unrecognized.
react-native ,首先,我想要引入轮播图效果,然后找了一个 react-native-swiper执行了以下语句npm uninstall react-native-swiper –save / yarn add react-native-swiper居然报错了-Command `run-android` unrecognized. Make原创 2017-10-17 11:36:46 · 3310 阅读 · 1 评论 -
解决支持库版本兼容问题:all com.android.support libraries must use the exact same version specification
from : http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2017/0910/8491.html如果引用的第三方库的支持库版本低于(或者不一致)app build.gradle中的支持库版本,可能会出现如下问题:all com.android.support libraries must use the exact转载 2017-11-10 11:03:11 · 5910 阅读 · 2 评论 -
react-native 解决 Can't find variable: __fbBatchedBridge
react-native 解决 Can't find variable: __fbBatchedBridge 注意,这是确保5.0以下设置了同一wifi下,或者5.0以上确保同一wifi,可以这样解决方法:react-native start然后(windows下)react-native bundle --platform android --dev fals原创 2017-09-29 17:15:20 · 1899 阅读 · 0 评论 -
react-native 运行github项目报错 Couldn't find preset “es2015” relative to directory
运行这篇文章的github项目报错http://blog.youkuaiyun.com/qq273681448/article/details/52969975 Couldn't find preset “es2015” relative to directory解决方法: npm install babel-preset-es2015 npm insta原创 2017-09-29 16:32:31 · 1436 阅读 · 0 评论 -
android studio 混淆使用,测试百分百可用
在主app中开启混淆,一般情况下release开启就行了,这个压缩和混淆开启影响速度buildTypes { release { signingConfig signingConfigs.release minifyEnabled true zipAlignEnabled true原创 2017-08-24 18:02:40 · 1453 阅读 · 0 评论 -
融云 dlopen failed: cannot locate symbol .... libsqlite.so 问题
玩融云 出现这个问题 dlopen failed: cannot locate symbol .... libsqlite.so 问题解决方法:把所有的libsqlite.so 删掉,融云连接成功,就是这么神奇,不要竟然也可以。。。原创 2017-07-11 23:12:58 · 1101 阅读 · 0 评论 -
Android 异常处理 - 关于E/HAL: load: id=gralloc != hmi->id=
报错异常如下:06-20 21:32:25.281 6615-6637/com.lvche.pocketscore E/HAL: load: id=gralloc != hmi->id=gralloc06-20 21:32:27.190 6895-6895/? E/dex2oat: Failed to create oat file: /data/dalvik-cache/arm/data@原创 2017-06-20 21:43:35 · 10680 阅读 · 0 评论 -
eclipse中 使用android annotations 框架 clean 后,出现了一下错误
eclipse中 使用android annotations 框架 clean 后,出现了一下错误报错如下:Errors occurred during the build.Errors running builder 'Android Package Builder' on project 'pggmall_native'.Problems encountered while原创 2016-09-05 18:24:05 · 1128 阅读 · 0 评论 -
androidannotations Eclipse下报引用不到框架生成类错误的解决方案
简单方式:1.引用整个包就好了,不用具体类2.其他方式:未验证:转载请注明 http://xuantan.iteye.com/admin/blogs/1828621 androidannotations Eclipse下报引用不到框架生成类错误的解决方案,如下:Intent intent = new Inten转载 2016-09-14 18:36:57 · 979 阅读 · 0 评论 -
Android Studio无法关联Api23源码-提示Souces for android api 23 platform not found
最近升级了As,然后忽然就关联不上源码了,很不方便,找个Activity的源码都只有outline没有解释,还提示这个错误:Decompiled .class file, bytecode version: Souces for android api 23 platform not found在D:\Android\sdk\sources\android-23明明下载了源码,找了转载 2016-07-12 15:22:35 · 5972 阅读 · 6 评论 -
Caused by: android.content.res.Resources$NotFoundException: Resource "com.lvche.lvchedingdang:drawab
错误打印 : 07-12 14:34:09.066 5936-5936/com.lvche.lvchedingdang E/PushFactory: getPushInstance not found push instance.07-12 14:34:09.096 5936-5936/com.lvche.lvchedingdang E/MscSpeechLog: getMscParamet原创 2016-07-12 14:45:52 · 1877 阅读 · 0 评论 -
animation-list AnimationDrawable null 空指针 原因
在 res/drawable 目录下 有个voice_to_icon.xml文件<animation-list xmlns:android="http://schemas.android.com/apk/res/android" android:oneshot="false"> <item android:drawable="@drawable/chatto_原创 2016-07-22 16:06:34 · 2122 阅读 · 0 评论 -
Android studio图片ERROR: 9-patch image xx .9.png malformed
Android studio 图片错误 9-patch image error in AndroidERROR: 9-patch image xx .9.png malformed1) 异常:AAPT err(1118615418): ERROR: 9-patch image icon_item_bottom_l转载 2016-06-06 14:42:46 · 1284 阅读 · 0 评论 -
Error:Failed to find: com.facebook.fresco:fresco:0.7.2+
报以下错误:Error:Failed to find: com.facebook.fresco:fresco:0.7.2+在dependencies 把 compile 'com.facebook.fresco:fresco:0.7.2+‘改成以下dependencies { ...... compile 'com.facebook.fre原创 2016-05-23 12:20:56 · 1900 阅读 · 0 评论 -
mysql Cannot add or update a child row: a foreign key constraint fails
今天在mysql中执行了一句追加一列属性ALTER TABLE `share` ADD COLUMN `goods_id` INT(20) NOT NULL AFTER `userId`然后为goods_id 增加外键约束 ALTER TABLE `share` ADD CONSTRAINT `fk_9_2` FOREIGN KEY ( `goods_id` )原创 2016-05-07 16:40:20 · 4367 阅读 · 0 评论 -
Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovy
见下文的参考build.gradle,添加最后一句话会报错:Error:No such property: GROUP for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovy具体解决方法:注释掉,具体原因及其描述见如下链接:http://stackoverflow.com/questions/原创 2016-05-25 17:07:23 · 1472 阅读 · 0 评论 -
不能用tabWoGuangBt.setBackground(this.getResources().getDrawable(R.drawable.tab01_2x))
/**不能用tabWoGuangBt.setBackground(this.getResources().getDrawable(R.drawable.tab01_2x)); 4.1版本以下* 会报错,改成setBackgroundResource* **/改成: tabFoundingBt.setBackgroundResource(R.drawable.tab_act03_2原创 2016-04-27 10:51:50 · 1082 阅读 · 0 评论 -
Eclipse 调试时,出现错误闪退,但是控制台没有打印错误信息
解决途径:可以监视一下 ThreadGroup这个类的uncaughtException这个方法贴上代码给予参考/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distr原创 2016-04-14 10:42:00 · 2515 阅读 · 0 评论 -
ClassCastException: android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.AbsLis
不管Listview 还是Gridview中的getView必须是按照父类的参数改正确以后: @Override public View getView(int position, View convertView, ViewGroup parent) { if (convertView == null) { AbsListView.LayoutParams原创 2016-04-25 14:49:43 · 2796 阅读 · 0 评论 -
Installation error: INSTALL_FAILED_VERSION_DOWNGRADE Android
Installation error: INSTALL_FAILED_VERSION_DOWNGRADE Android这个异常可能的原因很多,其中一:http://blog.youkuaiyun.com/love_javc_you/article/details/44344363而我遇到的问题是,同一包名的app 运用了不同签名导致卸载手机现有的app后,然后再装新的app即原创 2016-04-05 16:06:26 · 334 阅读 · 0 评论