![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
解决报错
super码王
一直在努力,从未放弃!!!
展开
-
Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in mod
换了AndroidStudio4.2.2后,类似Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in module冲突很多次出现这种错误了,解决办法:修改gradle.properties:看到下面两句没有的就加上吧。android.useAndroidX=trueandroid.enableJetifier=true...原创 2021-11-23 18:38:49 · 4186 阅读 · 1 评论 -
关于androidX版本下找不到SwipeRefreshLayout组件的问题
问题在Android API28 中你是能找到SwipeRefreshLayout逐渐的,但是,自从用上了 API 29/30之后,你会发现这个组件不见了解决方法需要手动在build.gradle中添加新版本的依赖:implementation “androidx.swiperefreshlayout:swiperefreshlayout:1.0.0” 然后编译一下,问题解决。...原创 2021-05-23 15:15:43 · 1164 阅读 · 0 评论 -
No Network Security Config specified, using platform default
报错日志No Network Security Config specified, using platform default在日志中看,这个并没有报红,但是网络请求不成功,确实是这个引起的。可笑的是:在模拟器上,虽然报了这个警告,但是仍然能获取到网络数据。模拟器上效果真机上效果解决方法造成这种报错的主要原因是,Android9.0以后不允许明文传输网络数据,即不允许http传输。解决方法如下:第一步:在配置文件中 application 节点上添加这么个属性原创 2021-05-09 14:49:17 · 6449 阅读 · 2 评论 -
error: (-209) The operation is neither ‘array op array‘ (where arrays have the same size and type)
问题展示error: (-209) The operation is neither 'array op array' (where arrays have the same size and type)错误原因两个矩阵尺寸大小不一样解决方法指定其中一个矩阵的大小,让两个矩阵大小一样就可以了原创 2021-04-08 13:39:12 · 5912 阅读 · 0 评论 -
OpenCV Error: Assertion failed (src.dims == 2 && info.height == (uint32_t)
问题展示报错原因mat 和 bitmap 的宽高没有匹配解决方法你得仔细看看你自己程序的,是不是 bitmap 创建之后 就没变过大小了,但是 Mat 在变所以,bitmap的大小 要跟着 Mat的大小 刷新而刷新...原创 2021-04-08 13:25:21 · 979 阅读 · 0 评论 -
No implementation found for void com.wust.testjni10.CallJava.callPrintString()
问题描述当你看到这篇文章的时候,说明你会jni了,并且还在调用 .so 库,可问题就出在调用的时候报了这么个错No implementation found for void com.wust.testjni10.CallJava.callPrintString()问题原因你的 .so 文件中那个 Java_包名_类名_方法名,与你现在写的不一样解决方法按照你的 .so 库 修改你的包名和类名即可...原创 2021-04-03 15:05:23 · 449 阅读 · 0 评论 -
NDK does not contain any platforms
错误标志NDK does not contain any platforms错误原因NDK版本过高解决方法重新下载低版本NDK下载链接:NDK下载链接原创 2021-03-30 00:11:14 · 376 阅读 · 0 评论 -
TypeError: this.getOptions is not a function
错误展示TypeError: this.getOptions is not a function错误原因这个实际上就是less-loader的版本过高,不兼容getOptions函数方法,所以需要对less-loader进行降级处理解决方法然后,在命令行安装低版本的npm install --only=dev less-loader@7.3.0...原创 2021-03-11 20:09:00 · 223 阅读 · 0 评论 -
调用startActivityForResult后,onActivityResult立刻回调
问题描述最近在开发一个轮胎检测App,当我在两个A --> B Activity 之间跳动时,通过startActivityForResult 来触发跳转,可是还没有等我结束B,更确切的说是没有跳转到 B,onActivityResult 就收到了消息,这种现象是不可控制的,肯定不是我们期望的。问题原因像上面这种情况啊,以我多年开发经验,确诊 这种病源于 你设置了 栈的存放方式,而且设置的还是Intent.FLAG_ACTIVITY_NEW_TASK 模式这种模式的意思是 新开一个..原创 2021-03-10 10:09:45 · 689 阅读 · 1 评论 -
Unable to resolve host “up.wustcloud.cn“: No address associated with hostname
问题报错Unable to resolve host "up.wustcloud.cn": No address associated with hostname报错详细日志W/x_log:HttpRetryHandler.canRetry(L:70): The Exception can not be retried.D/x_log:TaskProxy$InternalHandler.handleMessage(L:219): Unable to resolve host "up.wust原创 2021-03-09 21:45:54 · 922 阅读 · 0 评论 -
Found item Attr/circleRadius more than one time
报错信息Found item Attr/circleRadius more than one time翻译属性 “circleRadius” 定义不止一次错误展示解决办法把重名的属性名改一下就可以了,任选一个不顺眼的改掉即可。原创 2021-03-08 21:36:06 · 1035 阅读 · 0 评论 -
switch 语句编译报错Constant expression required
错误定位switch 语句编译报错Constant expression required解决方法 在常量前加 final 就可以了这样就不报错了,是不是很简单,哈哈哈原创 2021-02-27 23:37:00 · 1387 阅读 · 0 评论 -
This custom view should extend androidx.appcompat.widget.AppCompatTextView instead
报错信息第一种:This custom view should extend androidx.appcompat.widget.AppCompatTextView instead(这是新版)第二种:This custom view should extend android.support.v7.widget.AppCompatTextView instead(这是旧版)解决方案import android.annotation.SuppressLint;@Suppre..原创 2021-02-26 12:59:33 · 3899 阅读 · 0 评论 -
Binary XML file line #9: Error inflating class
报错日志02-22 23:12:44.403 29776-29776/com.example.btn_press E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.btn_press, PID: 29776 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.btn_press/com.example.btn_...原创 2021-02-22 23:29:07 · 1249 阅读 · 2 评论