错误收集
这人真帅鸭
这个作者很懒,什么都没留下…
展开
-
错误:Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
在gradle版本7.0.2中出现错误:Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:原创 2022-06-15 00:10:09 · 4408 阅读 · 0 评论 -
BaseQuickAdapter设置setOnItemClickListener报错
错误如下:java.lang.NoSuchMethodError: No virtual method getBindingAdapterPosition()I in class Lcom/chad/library/adapter/base/viewholder/BaseViewHolder; or its super classes (declaration of 'com.chad.library.adapter.base.viewholder.BaseViewHolder' appears in原创 2022-04-25 17:43:41 · 3328 阅读 · 2 评论 -
在新的android studio版本中GsonFormat无法使用
记录一下,在Android Studio Arctic Fox中GsonFormat插件无法使用了,可以使用:GsonFormatPlus使用时出现错误:Cannot resolve symbol 'lombok如果要像以前使用GsonFormat那样使用则可以在setting中去掉use lombok的勾选...原创 2022-01-07 10:31:44 · 1855 阅读 · 0 评论 -
AnimatorSet组合动画的笔记
一个个按顺序执行playSequentially(Animator... items)也可以使用play(animatorA).after(animatorB)因为playSequentially就是通过play(animatorA).after(animatorB)实现的例如:animSet.playSequentially(animatorScaleX,animatorScaleY,animatorRotation,animatorAlpha) //按顺序执行动画等于:原创 2021-12-14 15:45:34 · 1986 阅读 · 0 评论 -
ARouter在kotlin中使用,传递Int Long Double类型的参数空指针异常
ARouter在kotlin中使用,传递Int Long Double类型的参数由A activity传递到 B activity,在B Activity接收时出现空指针异常 java.lang.NullPointerException: Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference传递,String时在A activity种传String类型的参数:原创 2021-11-11 21:36:02 · 2308 阅读 · 0 评论 -
flutter集成高德地图遇到的坑
1,按照官方文档通过AMapWidget属性的方式设置"key"///先将申请的Android端可以和iOS端key设置给AMapApiKeystatic const AMapApiKey amapApiKeys = AMapApiKey( androidKey: '您申请的Android端key', iosKey: '您申请的iOS端key');发现找不到AMapApiKey类解决:在map的基础上再添加一个base,AMapApiKey在base中ama原创 2021-11-09 14:51:47 · 3214 阅读 · 4 评论 -
蓝牙startDiscovery()返回false
val result = bluetoothAdapter.startDiscovery()各种权限都添加了,动态权限也申请了,在6.0手机上返回true,但是在11上就返回false,原因:10以上还要开GPS可以扫描蓝牙设备,果然开启GPS后就返回true了原创 2021-09-07 00:22:14 · 1247 阅读 · 0 评论 -
自定义ViewGroup控件 textView 的ellipsize end 属性无效
自定义ViewGroup控件 textView 的ellipsize end 属性无效viewgroup里放的是textview,当text超长时,想要后面显示省略号.使用了android:ellipsize=“end” android:singleLine=“true” 发现没有效果,问题:发现该过长的textview的measuredWidth和父控件的一样大,因为两边设置的自定义的margin,左边坐标点在margin,右边就在父控件的measuredWidth+margin处,所以没有显示原创 2020-06-03 19:39:21 · 315 阅读 · 0 评论 -
This error happens if you call setState() on a State object for a widget that no longer appe
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error ca...原创 2020-03-15 22:47:39 · 2381 阅读 · 0 评论 -
Horizontal viewport was given unbounded height.
使用swiper时出现的错误解决:使用在swiper外面套一个Container来限定大小原创 2020-03-02 18:27:15 · 368 阅读 · 0 评论 -
在java项目中使用kotlin代码
在java项目中使用kotlin代码在java项目中进行kotlin的单元测试时找不到类也是该原因在Java中使用kotlin的类会出现下面的错误:错误: 找不到符号解决方法:在modle的build.gradle中加入apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensi...原创 2020-01-08 19:47:54 · 2067 阅读 · 0 评论 -
Non-terminating decimal expansion; no exact representable decimal result
java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.通过BigDecimal的divide方法进行除法时当不整除,出现无限循环小数时,就会抛异常:java.lang.ArithmeticException: Non-terminating ...原创 2020-01-06 20:39:04 · 639 阅读 · 0 评论 -
错误:Cannot resolve symbol 'RxJavaCallAdapterFactory'
错误:Cannot resolve symbol 'RxJavaCallAdapterFactory'原因:RxJava2把RxJavaCallAdapterFactory更新到RxJava2CallAdapterFactory依赖库: implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementa...原创 2019-11-13 13:57:45 · 1127 阅读 · 0 评论 -
the couston view should extend support v7 widget 然后又找不到v7包
继承ImageView提示要使用v7包的AppcompatImageView但是改用v7包的AppcompatImageView却发现没有这个包.应该使用androidx.appcompat.widget.AppCompatImageView中的AppCompatImageView.(现在大部分包都是应用androidx中的包了)import androidx.appcompat.w...原创 2019-11-10 12:25:09 · 598 阅读 · 0 评论