调试时的bug
文章平均质量分 64
Poulfei
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
java.lang.IllegalArgumentException
问题1:java.lang.IllegalArgumentException: Service not registered 原因:重复解绑 unbindService(connection) 问题2:java.lang.IllegalStateException: closed 场景:okhttp拦截器response.body.toString()后会被close,再次执行时会异常closed 问题3:java.lang.IllegalArgumentException: bad base-原创 2021-04-02 11:37:03 · 3231 阅读 · 0 评论 -
java.lang.IllegalStateException: The content of the adapter has changed but ListView did not....
问题场景: listView.visibility == View.GONE 更改了adapter的内容clear() add()没有进行更新adapter,在销毁界面时报错如下 01-03 21:36:56.162 5609-5609/xxxx E/AndroidRuntime: FATAL EXCEPTION: main Process: xxxx, PID: 5609 java.lang.IllegalStateException: The content of the ada...原创 2021-03-29 15:01:04 · 566 阅读 · 1 评论 -
Android studio调试时错误:Waiting for debugger (Application XXX is waiting for debugger to attach)
突然出现这么一个鬼问题,浪费了许多时间;android studio在调试的时候,突然卡在Waiting for debugger不动了,哇靠,啥玩意!!!! 开始找原因,1、百度建议 ,cmd下adb kill-server ,adb start-server,并没卵用。 2、开启几个窗口,那好我关了剩一个要调试的,没用。原创 2016-08-15 15:36:46 · 5181 阅读 · 4 评论 -
Error running app: Instant Run requires 'Tools | Android | Enable ADB integration' to be enabled.
之前早就遇到过这个问题,但是忘了怎么解决的了。这两天又遇到了这问题,做个记录吧!! 解决方法:1、setting-->Build,Execution,Deployment-->Instant Run-->第一个勾取消勾选 2、菜单栏-->Tools-->android-->Enable adb Integration原创 2016-10-29 10:49:08 · 448 阅读 · 0 评论 -
sources code does not match the bytecode
项目中在下载压缩包时出错,debug提示sources code does not match the bytecode 最终解决办法: 删除.gradle中对应项目使用版本下的cache,重新build ,clean原创 2017-08-19 15:57:33 · 5994 阅读 · 0 评论 -
usb安装apk时出现的安装失败的问题归纳
(测试机vivo Y81s,型号V1732T) 1、Installation failed with message INSTALL_FAILED_TEST_ONLY问题( 数据线安装apk时,出现安装失败) 解决方法:在gradle.properties文件中添加android.injected.testOnly=false 2、Installation failed with ...原创 2018-10-15 10:20:43 · 1814 阅读 · 0 评论 -
Unable to resolve dependency for ':app@allprojects/compileClasspath'
android studio 3.1.2 distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip 在import new module时,报错如下 Unable to resolve dependency for ':app@allprojects/compileClasspath': Co...原创 2018-10-20 17:17:59 · 429 阅读 · 0 评论 -
Android编译运行项目时报错java.io.IOException: Please correct the above warnings first.
在资源压缩时 buildTypes { release { minifyEnabled true shrinkResources true//自动缩减 signingConfig signingConfigs.debug proguardFiles getDefaultProguardFile('proguard-andr...原创 2018-10-23 16:18:55 · 2384 阅读 · 0 评论
分享