错误记录
文章平均质量分 50
MakerGaoGao
每个人都在前往未来的路上,只是有的人在走,有的人在跑
展开
-
安装调试报错:The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
错误描述:手机调试安装应用不能成功,完整报错如下:Installation did not succeed.The application could not be installed: INSTALL_FAILED_USER_RESTRICTEDList of apks:[0] ‘D:\Android_WS\Trip\app\build\intermediates\apk\flavors_dev\debug\Trip.apk’Installation via USB is disabled.原创 2022-05-18 16:55:47 · 10030 阅读 · 2 评论 -
水滴屏等异形屏的状态栏处理问题
问题水滴屏等异形屏在启动页状态栏出现黑边的问题。theme配置项如下 <style name="MyFullScreenTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowNoTitle">true</item> <item name="android:windowFullscreen">true</item>原创 2021-01-13 14:38:44 · 1381 阅读 · 0 评论 -
新建、启动项目报错Unable to instantiate activity ComponentInfo
错误内容1、新建、启动报错如下: Process: org.simple, PID: 1553 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.simple/org.simple.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "org.simple.MainActivity" on path: DexPa原创 2020-09-11 10:11:37 · 982 阅读 · 0 评论 -
git在push错误HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
错误描述:git在push时候出现错误,完整错误如下:Push failed Enumerating objects: 269, done. Delta compression using up to 4 threads Total 197 (delta 122), reused 0 (delta 0) RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) the remo原创 2020-06-04 14:53:50 · 11610 阅读 · 10 评论 -
内存泄漏问题记录:ReportFragment was never GCed but no leak found
问题情况使用内存检测leakcanary进行相关检测。页面返回时候报错内存如下:ReportFragment was never GCed but no leak found问题分析不是常规的内存泄漏,常规应该报错泄漏引用链。一脸懵逼,不知道。因为在页面中使用了time和timertask相关操作,所以怀疑是这两个捣的鬼。问题解决因为刚开始直接报出了泄漏引用链,time和timertask捣的鬼,进行相关操作如下:Lifecycle检测,在onDestroy的时候进行关闭操作:原创 2020-05-14 15:37:07 · 4431 阅读 · 0 评论 -
错误记录:java.lang.IllegalStateException: closed
1、问题:java.lang.IllegalStateException: closed2、原因:okhttp的 response.body.string()多次调用导致原创 2019-04-09 18:17:40 · 2159 阅读 · 0 评论 -
AndroidStudio启动模拟器出错emulator: ERROR: x86 emulation currently requires hardware acceleration!
1、错误信息:emulator: ERROR: x86 emulation currently requires hardware acceleration!2、原因:硬件加速配置安装问题。3、解决:1)安装,如下图所示(一般都会自动安装):2)打开intel的Virtual technoly支持(将其选项设置为enable即可)进入BIOS 根据不同电脑快...原创 2019-04-02 15:51:17 · 1391 阅读 · 0 评论 -
SSL handshake aborted: ssl=0x61512948: I/O error during system call, Connection reset by peer
https://blog.csdn.net/start0609/article/details/51332191/ https://github.com/square/okhttp/issues/2372 https://www.jianshu.com/p/97a0694dae68 https://blog.csdn.net/dengsi19361/article/deta...原创 2019-01-17 10:40:43 · 9854 阅读 · 0 评论 -
recycleview条目的背景选择器
1、颜色选择器羽图片选择器xmlns:android="http://schemas.android.com/apk/res/android"> android:drawable="@color/item_click" android:state_focused="true"/> android:drawable="@color/item_click" android:原创 2016-11-29 14:27:31 · 1493 阅读 · 0 评论 -
JSP错误The superclass "javax.servlet.http.HttpServlet" was not found on the Java BuildPath
1、原因:Javaweb工程类中没有添加Tomcat运行时相关类导致。2,解决办法,添加运行时库即可。具体步骤:1)在出错工程上点击右键构建路径:Build Path-->Configure Build Path2)添加库:Add Library --> Server Runtime -->选择tomcat , 点击finish完成即可解决。原创 2016-12-16 09:50:25 · 692 阅读 · 0 评论 -
Comparison method violates its general contract
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");try { Collections.sort(mResultInfoBeen, new HomeComparator());}catch (Exception e){}用老版本的比较器即可 解决 新版本的情况更加个严格原创 2016-10-08 12:31:24 · 318 阅读 · 0 评论 -
错误记录java.lang.IllegalStateException: Recursive entry to executePendingTransactions
fragment+viewpager在fragment使用viewpager切换MasterAdapter adapter = new MasterAdapter(getActivity().getSupportFragmentManager(),fragments);mVpMaster.setAdapter(adapter);这样会报出如上的错误,改成如下即可:Ma原创 2016-09-06 13:41:17 · 1849 阅读 · 4 评论 -
CheckBox报错Error inflating class android.widget.CheckBox, Caused by: android.content.res.Resources$No
CheckBox出错记录这两天玩CheckBox的时候出现了这个Bug现象:编译的时候没有问题,运行的时候程序直接崩溃:出现下面错误:...Error inflating class android.widget.CheckBox...Caused by: android.content.res.Resources$No仔细一看 系统资源找不到 这神马情况,原创 2016-08-12 15:44:50 · 1215 阅读 · 2 评论