错误累积(错题本)
文章平均质量分 59
错误累积(错题本)
被开发耽误的大厨
10多年开发经验,创过业也在其他创业公司工作过,也在同方威视、联想集团等知名大厂工作过,为人谦虚谨慎,对待工作一丝不苟。有JavaEE后端、Android原生开发、Web前端开发(H5)、混合开发、web app、ios开发的经验,涉及音视频、社交、ai人脸识别、安检安防、电商等多方面的项目。现如今花几百万大洋被套牢,北京大龄程序猿房奴一枚,一直在路上。。。最近大部分博文专栏都免费了,将更专心更文,将更新更多数据结构、算法、源码系列文章,并整理《博客导航目录》,我是。。。的大厨,大家一起加油!
展开
-
debug模式启动不了项目,报:Method breakpoints may dramatically slow down debugging
debug模式启动时,会提示:Method breakpoints may dramatically slow down debugging(方法断点可能会大大降低调试速度)若是某个接口实现方法需要打断点,可以在方法名称和参数的下一行进行打断点。因为习惯 debug模式启动,趁着其他功能和bug解决后的空隙,找资料解决下,正常 run 启动项目能成功,debug模式启动项目,一直不成功。合理的打断点,那么标识号是圆圈的。说明当前项目中在某些方法和接口上打了断点导致执行延迟。原创 2023-09-20 14:12:11 · 1034 阅读 · 0 评论 -
启动报异常:org.yaml.snakeyaml.parser.ParserException: while parsing a block mapping
原因:yml文件格式错误,此文件要求严格要求格式。原创 2022-12-27 17:32:37 · 2142 阅读 · 0 评论 -
运行项目报错 proxy error: could not proxy request...
弹窗提示:proxy error: could not proxy request...from 我本地 to 目标地址。查了一下,有可能是由端口号冲突引起的,于是尝试把本地端口号修改了一下,然后重新跑项目,问题解决啦!port: '3333', // (修改点)本地默认端口,修改后重新跑就可以了。今天跑项目的时候遇到一个问题,早上跑的时候还好好的,午休完起来一看,页面报错了,页面表现:页面可以打开,UI也可以展示,但是接口都是红的,报500。host: '127.0.0.1', // 本地服务器。原创 2022-11-04 11:00:17 · 23471 阅读 · 2 评论 -
Invocation failed Unexpected end of file from server
git pull 失败报错: Invocation failed Unexpected end of file from server原创 2022-08-24 17:45:26 · 2841 阅读 · 1 评论 -
idea找不到符号,程序包不存在的bug(2020-06-10)
idea找不到符号,程序包不存在的bug原创 2022-06-10 17:37:42 · 674 阅读 · 1 评论 -
Untracked Files Prevent UnstashMove or commit them before unstashView Files...
点击Unstash Changes... 操作报如下信息:Untracked Files Prevent UnstashMove or commit them before unstashView Files...点击View Files...找到上面三个文件,删除掉,然后再操作!原创 2022-04-21 16:10:44 · 2669 阅读 · 0 评论 -
HttpMessageNotReadableException: Required request body is missing(2022-04-18)
@ApiOperation("导出Excel")@GetMapping("/exportExcel")public void exportExcel(HttpServletRequest request, HttpServletResponse response){使用get请求,如果传100个ids,浏览器路径有长度限制修改为使用body接参数@ApiOperation("导出Excel")@GetMapping("/exportExcel")publi...原创 2022-04-18 17:05:05 · 1512 阅读 · 0 评论 -
‘vue-cli-service‘ 不是内部或外部命令,Cannot read properties of null (reading ‘pickAlgorithm‘)_(2022-04-06)
报错信息:报错1:'vue-cli-service' 不是内部或外部命令,也不是可运行的程序或批处理文件。报错2:Cannot read properties of null (reading ‘pickAlgorithm‘)Windows PowerShell版权所有 (C) Microsoft Corporation。保留所有权利。尝试新的跨平台 PowerShell https://aka.ms/pscore6PS D:\workspace\zsh_code..原创 2022-04-06 18:26:34 · 7977 阅读 · 0 评论 -
(2022-3-30)Your local changes would be overwritten by merge. Commit, stash or revert them to proceed
11、异常信息Git 冲突,git pull 拉不下来,报异常信息Your local changes would be overwritten by merge. Commit, stash or revert them to proceed.2、解决方式第1步,储存我自己的修改步先把 我们的修改 Stash ,存储起来,你操作完了,发现项目是修改前的了!第2步,Git Pull 拉取拉取更新完成以后,这样拉就成功了!!!第3..原创 2022-03-30 14:27:34 · 1054 阅读 · 0 评论 -
No cached version available for offline mode
ERROR: Could not download gradle.jar (com.android.tools.build:gradle:3.5.0): No cached version available for offline mode有段时间没有运行的项目,今天run项目时报:No cached version available for offline mode,原因是之前为了快速编译项目,勾选了offline work1.找到设置2.取消掉勾选,然后appl...原创 2021-04-11 09:26:55 · 572 阅读 · 0 评论 -
ERROR: Unable to resolve dependency for ‘:app@debug/compileClasspath‘: Could not resolve XX.XX
注释这里就ok了参考:https://blog.csdn.net/gs344937933/article/details/98932400原创 2021-01-05 00:39:44 · 248 阅读 · 0 评论 -
ERROR: Failed to resolve: org.junit.jupiter:junit-jupiter-api:
注释掉就行了参考:https://blog.csdn.net/xie110824/article/details/79456231原创 2021-01-05 00:37:12 · 3901 阅读 · 0 评论 -
mysql的表字段里面有值,但Mybatis获取数据为null(2020-12-11)
mysql数据库表字段java实体类属性 @TableField("USER_ALLOW") //private Integer user_allow; private Integer userAllow;对应的java实体类,需如上定义。使用下划线的方式,获取到的值为null另外还有其他方式,进行配置可解决。可参考博文:Mybatis下划线和实体类驼峰映射的问题https://blog.csdn.net/ju_362204801/ar...原创 2020-12-11 14:50:09 · 486 阅读 · 0 评论 -
java.lang.NullPointerException: Attempt to invoke virtual method ‘java.lang.Object android.content.C
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference原因:fragment中可能会出现获取getActivity为null的情况在设置适配器的时候,把它作为上下文传递,会报如上错误解决方式:...原创 2020-09-26 13:45:00 · 3456 阅读 · 0 评论 -
Parcelable encountered IOException writing serializable object (name = xxx.bean.UserInfoBean)
错误信息:Parcelable encountered IOException writing serializable object (name = xxx.bean.UserInfoBean)Caused by: java.io.NotSerializableException: xxx.bean.UserInfoBeanData$UserInfoBeanAssets错误位置:Intent intent = new Intent(context,MainActivity....原创 2020-09-10 16:30:49 · 493 阅读 · 0 评论 -
No cached version of com.android.tools.build:aapt2:3.2.1-4818971 available for offline mode
No cached version of com.android.tools.build:aapt2:3.2.1-4818971 available for offline mode解决方式取消红色边框标记的选项,别忘记 Apply然后如下效果图原创 2020-08-29 12:16:16 · 1103 阅读 · 0 评论 -
红叉,用eclipse打开很久之前Android项目,Library库文件报红叉
红叉,用eclipse打开很久之前Android项目,Library库文件报红叉,在此做个记录解决方式右键项目工程,Build Path。。。原创 2020-08-29 11:52:21 · 193 阅读 · 0 评论 -
ERROR: Unknown host ‘repo.maven.apache.org: nodename nor servname provided, or not known‘(2020/08)
今天想运行一下之前做的项目,结果报错:ERROR: Unknown host 'repo.maven.apache.org: nodename nor servname provided, or not known'. You may need to adjust the proxy settings in Gradle.Enable Gradle 'offline mode' and sync projectLearn about configuring HTTP proxies in G...原创 2020-08-22 21:02:57 · 6584 阅读 · 1 评论 -
You need to use a Theme.AppCompat theme (or descendant) with this activity(2018-08)
先看一条错误信息:Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) withthisactivity.android Studio在执行新建项目时出现此错误,出现此错误的原因就是:Activty继承自androidx.appcompat.app.AppCompatActivity,而不是android.app.Activty。错...原创 2020-08-18 00:43:42 · 364 阅读 · 0 评论 -
Android Studio添加 bmob sdk 依赖报错:ERROR: Failed to resolve: cn.bmob.android:bmob-sdk:3.5.5
ERROR: Failed to resolve: cn.bmob.android:bmob-sdk:3.5.5Show in Project Structure dialogAffected Modules: app参考博文:完美解决 android studio无法添加 bmob sdk依赖 错误原创 2020-08-05 18:51:02 · 1941 阅读 · 0 评论 -
AndroidStudio报错:Could not get resource ‘xxx/xxx/error_prone_annotations-2.2.0.jar‘
自认为自己已经算是老鸟了,在使用Android Studio build的时候也总会遇到奇怪的问题,例如:今天mac电脑在运行安卓项目时,遇到了这个问题:FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:javaPreCompileDebug'.> Could not resolve all files for configura...原创 2020-07-20 14:09:34 · 2358 阅读 · 3 评论 -
unable to resolve dependency for:xxx
目录解决方式尝试1(不行)尝试2(不行)尝试3(不行)尝试4(解决)使用 leakcanary 内存泄露检测工具,之前写的demo今天运行报错:unable to resolve dependency for:xxxdownload leakcanary-android.aar (com.squareup.leakcanary:leakcanary-android:2.2)Show DetailsAffected Modules: testleakdemo4_t原创 2020-07-18 09:15:24 · 247 阅读 · 0 评论 -
npm安装依赖包报错,npm ERR! code ENOTFOUND(2020-07-03)
vue项目安装依赖包,报错如下:$ npm installnpm WARN registry Using stale data from https://registry.npmjs.org/ because the host is inaccessible -- are you offline?npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during r...原创 2020-07-03 12:37:36 · 12968 阅读 · 1 评论 -
Android Studio中新建Activity,引入布局的位置,莫名报异常:Cannot resolve symbol。。。
Android Studio中新建Activity,引入布局的位置莫名报异常:Cannot resolve symbol。。。解决方式:清空Android Studio缓存:"File"---->"Invalidate Caches / Restart..."---->"Invalidate and Restart"参考资料:https://blog...原创 2020-04-16 10:37:51 · 772 阅读 · 9 评论 -
java.lang.UnsupportedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor version
今天在运行 myEclipse 里面的java项目,报错如下:Exception in thread "main" java.lang.UnsupportedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor version 52.0一、首先解释一下:stanford parser和jdk版本...原创 2020-04-01 10:59:21 · 4065 阅读 · 0 评论 -
Myeclipse项目内容没有报错但是项目上面却有红色叉叉
现象:Myeclipse上面项目内容没有任何错误、但是项目上面却有红色XX标识错误示例:1、展示项目内容没有错误、但是项目上面却有红色小XX2、错误代码提示异常:Project facet Dynamic Web Module 3.0 is not supported by target runtime MyEclipse Generic Runtime for Jav...原创 2020-03-10 10:57:35 · 610 阅读 · 0 评论 -
The import javax.servlet cannot be resolved
导入以前的 web项目,报错:The import javax.servlet cannot be resolved解决方式:1、首先保证,开发工具配置了tomactjava服务器开发:4、环境搭建,MyEclipse配置tomact步骤详解2、添加库右击项目,Build Path->configure build path->Libraries->Add ...原创 2020-03-09 12:37:12 · 399 阅读 · 0 评论 -
在 MyEclipse 中启动 Tomact的时候,报错:'Starting MyEclipse Tomact v8.5' has encountered a problem
在 MyEclipse 中启动 Tomact的时候,如下 报错:'Starting MyEclipse Tomact v8.5' has encountered a problem,如下图:大概意思:启动失败,端口被占用了//打开Terminal,进入ApacheTomcat所在目录的bin目录下cd /Users/luminal/Library/ApacheTomca...原创 2020-03-05 19:20:57 · 1604 阅读 · 0 评论 -
The ResourceConfig instance does not contain any root resource classes
当在 myEclipse2017下部署 web 项目的时候,会报如下错误:严重: StandardWrapper.Throwablecom.sun.jersey.api.container.ContainerException: The ResourceConfig instance does not contain any root resource classes. at com....原创 2020-02-27 14:06:47 · 1408 阅读 · 0 评论 -
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
公司之前的项目,有段时间不运行,今天用真机调试出现如下提示信息:Installation did not succeed.The application could not be installed: INSTALL_FAILED_USER_RESTRICTEDInstallation via USB is disabled.Retry解决方式通过 Installation vi...原创 2019-12-11 10:12:16 · 10432 阅读 · 2 评论 -
Unable to resolve dependency for ':app@debug/compileClasspath': Could not downloadERROR:
报错:打开最近开发的人脸识别项目,报一大堆下载不了的错误:Unable to resolve dependency for ':app@debug/compileClasspath': Could not downloadERROR: xxx,最近也没做什么改动操作就是把AS从3.2.1升级到了3.5.0解决方式:既然是依赖下载包的问题,那么肯定与gradle的配置更新相关,想起最...原创 2019-11-20 10:05:48 · 716 阅读 · 0 评论 -
unknow host"akamai.bintray.com".you may need to adjust the proxy settings in gradle
打开以前Android用Kotlin语言写的项目,报错:unknow host"akamai.bintray.com".you may need to adjust the proxy settings in gradle解决方式:这是因为 build.gradle中jcenter() 或者 maven() 被墙了,所以会出现这种情况,我们可以使用阿里云镜像在 Project...原创 2019-11-07 00:46:51 · 1267 阅读 · 0 评论 -
bash: ./gradlew: Permission denied
查看Android项目中三方库的时候报错,但是没有具体错误信息。于是输入 gradlew 命令大杀器查看具体原因,结果报权限错误:Permission denied$ ./gradlew compileDebugJavaWithJavacbash: ./gradlew: Permission denied解决方案$ chmod +x gradlew然后输入 ./gr...原创 2019-10-20 00:09:14 · 4964 阅读 · 0 评论 -
Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
集成第三方sdk,运行时报错:Could not resolve all files for configuration ':app:_internal_aapt2_binary'.解决方式参考博文:https://blog.csdn.net/YuDBL/article/details/90417491原创 2019-10-19 23:52:42 · 2809 阅读 · 0 评论 -
-bash: npm: command not found
卸载node,安装nvm,通过nvm安装管理node,而后使用npm命令,结果报错:-bash: npm: command not found解决方式:我进行重新安装node才解决,去官网重新下载node的v10.16.0,https://nodejs.org/en/...原创 2019-07-23 10:21:17 · 29929 阅读 · 0 评论 -
Cannot resolve external dependency com.android.tools.build:gradle:3.2.1 because no repositories are
最近朋友让我给他看看项目bug,给的代码运行起来报如下错误:Cannot resolve external dependency com.android.tools.build:gradle:3.2.1 because no repositories are解决方式:Enable embedded Maven repository 启用嵌入式Maven存储库...原创 2019-07-31 11:47:38 · 10807 阅读 · 6 评论 -
Execution failed for task ':app:javaPreCompileDebug'
集成第三方代码出现此错误Execution failed for task ':app:javaPreCompileDebug'解决方式如下:在app的build.gradle中,添加如下代码: javaCompileOptions { annotationProcessorOptions { includeCom...原创 2019-08-22 15:16:18 · 6549 阅读 · 5 评论 -
Duplicate class a found in modules classes.jar (:gaoesdklibrary:) and classes.jar (gaoesdklibrary.aa
最近集成第三方 “鸟哥笔记”,根据集成文档进行配置:1、在项目的libs目录放入aar包文件gaoesdklibrary.aar2、在build.gradle( Module:app )添加依赖代码:implementation(name: 'gaoesdklibrary', ext: 'aar')结果项目打包apk的时候,报如下错误:java.util.concurrent...原创 2019-09-02 15:00:18 · 3855 阅读 · 0 评论 -
Are you missing a call to unregisterReceiver()?
Activity com.xxx.xxx.MainActivity has leaked IntentReceiver com.android.internal.policy.impl.PhoneWindow$2@422bc8b8 that was originally registered here.Are you missing a call to unregisterReceiver()?...原创 2019-09-04 16:19:41 · 5834 阅读 · 0 评论 -
Execution failed for task ':app:validateSigningDebug',Keystore file '/Users/xxx/yyy.jks' not found
FAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:validateSigningDebug'.> Keystore file '/Users/xxx/yyy.jks' not found for signing config 'debug'.解决方式:...原创 2019-05-21 23:29:59 · 2848 阅读 · 0 评论