错误记录
文章平均质量分 67
韩曙亮
中国人民大学硕士 , 专注于 移动开发 领域 , 博客专家 , 2023 年博客之星 TOP1 , 2021 年博客之星 TOP9 , 华为云 云享专家 , 阿里云社区 专家博主 , 51CTO 专家博主 ;
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【错误记录】Android Studio 编译报错 ( Lint found fatal errors while assembling a release target. )
1: Task failed with an exception.-----------* What went wrong:Execution failed for task ':app:lintVitalRelease'.> Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build原创 2025-06-20 15:07:32 · 934 阅读 · 0 评论 -
【错误记录】Android Studio 编译报错 ( Failed to read key key0 from store “**/key“ Invalid keystore format )
Android Studio 窗口界面中创建的 打包签名文件是 jdk 21.0.6 版本的 , 应用程序 编译使用的时 jdk 1.8 版本的 , jdk 版本不兼容 , 导致了打包签名时报错的问题 ; 执行 `keytool -genkeypair -v -keystore my.keystore -alias key0 -keyalg RSA -keysize 2048 -validity 10000` 命令 , 创建 符合 命令行 JDK 版本的 keystore 签名文件 ;原创 2025-06-20 14:50:50 · 823 阅读 · 0 评论 -
【错误记录】Mac 中 Android Studio 编译报错 ( com.android.ide.common.signing.KeytoolException: Failed to read )
Execution failed for task ':app:packageDebug'.> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable > com.android.ide.common.signing.KeytoolException: Failed to read key AndroidDebugKey f原创 2025-06-16 16:20:59 · 723 阅读 · 0 评论 -
【错误记录】Mac 命令行执行 brew 命令报错 ( Error: Failed to upgrade Homebrew Portable Ruby! )
To retry an incomplete download, remove the file above.Error: Failed to upgrade Homebrew Portable Ruby!原创 2025-06-16 16:06:18 · 1051 阅读 · 0 评论 -
【错误记录】Android Studio 编译报错 ( Namespace not specified. Specify a namespace in the module‘s build fil )
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.If you've specified the package attribute in the source AndroidManifest原创 2025-06-16 14:19:30 · 3235 阅读 · 0 评论 -
【错误记录】Android Studio 编译报错 ( Could not create task ‘:app:processDebugResources‘. Cannot use @TaskAc )
Could not create task ':app:processDebugResources'.Cannot use @TaskAction annotation on method IncrementalTask.taskAction$gradle_core() because interface org.gradle.api.tasks.incremental.IncrementalTaskInputs is not a valid parameter to an action method.原创 2025-06-16 13:24:59 · 2305 阅读 · 0 评论 -
【错误记录】LlamaIndex 开发 大模型应用 报错 ( No API key found for OpenAI. Please set either the OPENAI_API_KEY )
Could not load OpenAI embedding model. If you intended to use OpenAI, please check your OPENAI_API_KEY.Original error:No API key found for OpenAI.Please set either the OPENAI_API_KEY environment variable or openai.api_key prior to initialization.原创 2025-05-08 22:15:00 · 1850 阅读 · 7 评论 -
【错误记录】Android NDK 架构报错 ( Android 应用 ndk 需要同时配置 armeabi-v7a 和 arm64-v8a 架构的 动态库 )
安装前检查此 32 位安装程序包可能与您的手机不兼容。安装后,该应用程序可能会卡顿或崩溃、耗电增加或导致其他问题。原创 2025-05-06 15:08:07 · 2500 阅读 · 2 评论 -
【错误记录】Windows 命令行程序循环暂停问题分析 ( 设置 “ 命令记录 “ 选项 | 启用 “ 丢弃旧的副本 “ 选项 | 将日志重定向到文件 )
一、报错信息二、问题分析1、Windows 命令行的缓冲区机制2、命令记录设置三、解决方案1、设置 " 命令记录 " 选项2、将日志重定向到文件原创 2025-04-21 23:45:00 · 1271 阅读 · 6 评论 -
【错误记录】CrossEncoder 从 Hugging Face 模型库中下载模型报错 ( ConnectionError: (ProtocolError(‘Connection aborted )
一、报错信息二、问题分析1、查看本地模型缓存2、使用 Python 代码测试网络3、终极解决方案 - 手动下载模型三、解决方案1、网络问题 - 清除代理2、问题解决后成功执行原创 2025-03-10 10:29:09 · 1644 阅读 · 3 评论 -
【错误记录】Hugging Face 模型库下载模型报错 ( huggingface_hub 函数库使用 configure_hf 函数 报错 | 更新到最新版本 | 使用旧版本兼容方法设置镜像源 )
一、错误记录二、问题分析三、解决方案1、升级 huggingface_hub 函数库2、使用旧版本 huggingface_hub 函数库兼容写法原创 2025-03-05 01:15:00 · 2949 阅读 · 4 评论 -
【错误记录】本地部署大模型 从 Hugging Face 的模型库下载模型报错 ( OSError: We couldn‘t connect to ‘https://huggingface.co‘ )
OSError: We couldn't connect to 'https://huggingface.co' to load this file, couldn't find it in the cached files and it looks like sentence-transformers/all-MiniLM-L6-v2 is not the path to a directory containing a file named config.json.Checkout your inte原创 2025-03-04 19:53:13 · 3496 阅读 · 3 评论 -
【错误记录】安装 向量数据库 chromadb 报错 ( ValueError: check_hostname requires server_hostname )
File "D:\001_Develop\022_Python\Python39\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname")ValueError: check_hostname requires server_hostname原创 2025-03-03 14:51:41 · 1730 阅读 · 1 评论 -
【错误记录】安装 向量数据库 chromadb 报错 ( Cargo, the Rust package manager, is not installed or is not on PATH. )
Cargo, the Rust package manager, is not installed or is not on PATH. This package requires Rust and Cargo to compile extensions. Install it through the system's package manager or via https://rustup.rs/ Checking for Rust toolchain....原创 2025-03-01 18:21:02 · 3784 阅读 · 2 评论 -
【错误记录】Kotlin 开发 TCP 客户端接收不到服务端数据 ( InputStream#readBytes 函数只适合读取一次性数据 / 不适合读取持续数据 )
InputStream # readBytes() 函数 只适合读取一次性关闭的流(如文件) , 不适用于持续 TCP 连接 ;将 InputStream # readBytes() 替换 为 基于缓冲区的循环读取 的方式 ;原创 2025-02-22 22:45:00 · 641 阅读 · 2 评论 -
【错误记录】Android 悬浮窗开发报错 ( Context.startForegroundService() did not then call Service.startForeground )
android.app.ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{d586da8 u0 hsl.floatingwindow/.FloatingWindowService}原创 2025-02-20 10:29:18 · 2041 阅读 · 2 评论 -
【错误记录】Android Studio 配置 GitHub 账号 ( GitHub 生成 Token 并到 Settings / Version Control / GitHub 中配置账号 )
GitHub 生成 Token 并到 Settings / Version Control / GitHub 中配置账号原创 2025-02-19 02:15:00 · 718 阅读 · 3 评论 -
【错误记录】DevEco Studio 模拟器启动失败 ( 错误 : 未开启Hyper-V , 运行模拟器需要开启Hyper-V虚拟化支持 , 查看处理指导 )
错误 : 未开启Hyper-V , 运行模拟器需要开启Hyper-V虚拟化支持 , 查看处理指导一、错误记录二、解决方案1、查看CPU 是否支持虚拟化2、启用 Hyper-V3、启动模拟器成功4、创建最小资源消耗的模拟器5、在模拟器中运行程序原创 2025-02-18 03:15:00 · 2994 阅读 · 4 评论 -
【错误记录】Windows 中 DevEco Studio 真机调试无法连接设备 ( 低版本的 HarmonyOS 4.2.0 华为手机无法在 DevEco Studio 5.0.2 上真机调试 )
低版本的 HarmonyOS 4.2.0 华为手机 无法在 最新版的 DevEco Studio 5.0.2 上 进行 真机调试 ; 手机版本必须达到 HarmonyOS 5.0.0 以上才行 ;原创 2025-02-17 12:37:37 · 9637 阅读 · 16 评论 -
【GitHub】GitHub 2FA 双因素认证 ( 使用 Microsoft Authenticator 应用进行二次验证 )
一、GitHub 的 2FA 双因素认证二、使用 Microsoft Authenticator 应用进行二次验证1、TOTP 应用2、下载 Microsoft Authenticator 应用3、安装使用 Authenticator 应用三、恢复码重要性原创 2025-02-07 23:15:00 · 4394 阅读 · 7 评论 -
【错误记录】HarmonyOS 编译报错 ( 混淆文件报错 | The obfuscation file declared in configuration does not exist. )
hvigor ERROR: The obfuscation file declared in configuration does not exist. Detail: Can not find obfuscation file at D:\002_Project\014_DevEcoStudioProjects\ArkTSAlgorithm\entry\obfuscation-rules.txt.原创 2025-01-06 23:15:00 · 796 阅读 · 3 评论 -
【错误记录】HarmonyOS 编译报错 ( DevEco Studio 开发环境 与 API 版本 与 HarmonyOS 版本 的配套关系 )
一、报错信息二、DevEco Studio 开发环境 与 API 版本 对应关系分析1、当前 DevEco Studio 4.0 Release 版本支持的 API 版本2、如何到官网查看 DevEco Studio 4.0 Release 版本 / API 版本 / HarmonyOS 版本的对应关系3、HarmonyOS 开发者 3.1/4.0 版本配套的开发者文档4、HarmonyOS 5.0.1(13) 版本 的 配套文档5、HarmonyOS 5.0.0(12) 版本 的 配套文档原创 2025-01-06 22:45:00 · 3089 阅读 · 2 评论 -
【错误记录】Android Studio 真机调试报错 ( 无法显示设备一直显示 Loading Devices | 解决方案 - 杀死占用 5073 端口的进程 / 重启电脑 | 360Mobi )
一、报错信息二、解决方案 - 杀死占用 5073 端口的进程三、360MobileSrv.exe 进程无法杀死的原因分析原创 2024-12-04 22:45:00 · 3192 阅读 · 4 评论 -
【错误记录】Android Studio 开发环境内存占用过多 ( 记录内存使用情况 )
【错误记录】Android Studio 开发环境内存占用过多 ( 记录内存使用情况 )原创 2024-12-03 23:45:00 · 1944 阅读 · 3 评论 -
【错误记录】Qt 单步调试 F10 快捷键失灵 ( Start and Break on Main 和 单步调试 默认都是 F10 快捷键 | 单步调试技巧 - 转换汇编指令模式 )
Debug 的时候 , 如果直接使用 单步调试 出现终止的情况 , 可以点击下面的 " Switchs the debugger to instruction-wise operation mode " 按钮 , 先转换为 汇编指令 模式 , 按 F10 向前走一步 , 然后再切换回 代码模式 , 即可进行单步调试 ;原创 2024-11-26 23:15:00 · 1237 阅读 · 1 评论 -
【错误记录】PyCharm 中安装软件包出错 ( Try to run this command from the system terminal. Make sure that you use )
Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at原创 2024-08-15 23:45:00 · 11673 阅读 · 10 评论 -
【错误记录】Android 应用漏洞修复处理 ( 截屏攻击漏洞 | Android 系统的截屏方式 | 通过 adb 命令截屏 |Android 截屏代码 | Android 设置禁止屏幕截屏代码 )
一、Android 截屏攻击二、Android 系统的截屏方式三、通过 adb 命令截屏四、Android 截屏代码五、设置 FLAG_SECURE 标志位禁止屏幕截屏原创 2024-06-22 21:17:15 · 2180 阅读 · 2 评论 -
【错误记录】Android 应用漏洞修复处理 ( 动态反调试漏洞 | 调用 Debug.isDebuggerConnected 函数查询是否被动态调试 )
一、动态调试攻击二、Frida、Xposed 动态调试攻击应对措施三、调用 Debug.isDebuggerConnected 函数查询是否被动态调试原创 2024-06-21 22:37:10 · 1605 阅读 · 5 评论 -
【错误记录】Android 应用漏洞修复处理 ( 无堆栈保护的 ELF 构建 SO 文件 | lib/armeabi-v7a/libijkffmpeg.so 安全检测出现问题 )
一、堆栈保护二、gcc 编译选项 -fstack-protector三、解决方案1、交叉编译动态库时设置 -fstack-protector 参数2、Android.mk 配置3、CMakeLists.txt 配置原创 2024-06-21 14:02:31 · 823 阅读 · 2 评论 -
【错误记录】HarmonyOS 运行报错 ( Failure[MSG_ERR_INSTALL_FAILED_VERIFY_APP_PKCS7_FAIL] )
$ hdc shell bm install -p /sdcard/92967f387f3a46d6b9f4995db84e9e86/Failure[MSG_ERR_INSTALL_FAILED_VERIFY_APP_PKCS7_FAIL]$ hdc shell rm -rf /sdcard/92967f387f3a46d6b9f4995db84e9e86Error while Deploying HAP原创 2024-05-29 11:41:59 · 1784 阅读 · 2 评论 -
【错误记录】HarmonyOS 编译报错 ( 创建与 DevEco 版本不匹配的 API 版本 | No matching version found for @ohos/hypium@1.0.11)
npm ERR! code ETARGET npm ERR! notarget No matching version found for @ohos/hypium@1.0.11.npm ERR! notarget In most cases you or one of your dependencies are requesting原创 2024-05-28 15:32:55 · 1741 阅读 · 2 评论 -
【错误记录】HarmonyOS 运行报错 ( Failure INSTALL_PARSE_FAILED_USESDK_ERROR )
Failure[INSTALL_PARSE_FAILED_USESDK_ERROR]compileSdkVersion and releaseType of the app do not match the apiVersion and releaseType on the device.原创 2024-05-28 10:56:24 · 5020 阅读 · 1 评论 -
【错误记录】adb 调试 android 设备报错 ( adb server version (19045) doesn‘t match this client (41); killing... )
adb server version (19045) doesn't match this client (41); killing...could not read ok from ADB Server* failed to start daemonadb.exe: failed to check server version: cannot connect to daemon原创 2024-04-22 20:15:00 · 4494 阅读 · 4 评论 -
【错误记录】Kotlin 中 Lambda 表达式返回值报错 ( ‘return‘ is not allowed here | 匿名内部类 | 尾随 Lambda 规范 - Lambda 替换接口 )
一、错误记录二、问题分析1、匿名内部类2、尾随 Lambda 规范 - Lambda 替换接口3、Lambda 表达式中 return 需要 @ 标签三、解决方案原创 2024-04-15 16:28:38 · 1956 阅读 · 12 评论 -
【错误记录】Android 使用 Navigation 报错 ( Trying to instantiate a class xx.NavHostFragment that is not a Fr )
Caused by: android.app.Fragment$InstantiationException: Trying to instantiate a class androidx.navigation.fragment.NavHostFragment that is not a Fragment原创 2024-04-14 15:26:50 · 972 阅读 · 10 评论 -
【错误记录】Android 编译报错 ( Attempt to invoke virtual method ‘void xx.ActionBar.setTitle()‘ on a null obj )
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void androidx.appcompat.app.ActionBar.setTitle(java.lang.CharSequence)' on a null object reference一、报错信息二、问题分析三、解决方案1、配置有标题的主题 - Theme.AppCompat.Light.DarkActionBar2、不关联原创 2024-04-14 13:39:08 · 2078 阅读 · 2 评论 -
【错误记录】Android Studio 调试 华为手机 不显示 Logcat 日志 ( Fail to acquire dataAnalyzerService | HarmonyOS 鸿蒙系统 )
E/BehaviorCollectManager: Fail to acquire dataAnalyzerService...E/Adreno-AppProfiles: Could not find QSPM HAL serviceE/OpenGLRenderer: Unable to match the desired swap behavior.原创 2024-04-14 10:18:27 · 7200 阅读 · 3 评论 -
【错误记录】Android 编译报错 ( Could not resolve xxx | 手动下载依赖库并进行本地配置 Gradle 依赖的解决方案 | 构建 Maven 依赖下载路径 )
一、报错信息二、解决方案1、确定 Maven 仓库地址2、构建 Maven 依赖下载路径3、检查依赖库是否存在4、在 Gradle 中配置本地依赖原创 2024-04-13 18:04:12 · 7109 阅读 · 8 评论 -
【错误记录】Android 编译报错 ( Could not resolve com.google.android.exoplayer:exoplayer:r | 依赖下载失败通用解决方案总结 )
一、报错信息二、解决方案1、检查依赖库是否存在2、检查版本号是否正确3、检查仓库地址配置 ( 本案例的解决方案 )4、检查网络5、手动下载 Gradle 依赖原创 2024-04-13 16:58:12 · 1758 阅读 · 0 评论 -
【错误记录】adb 调试 android 设备报错 ( adb server version (32) doesn‘t match this client (41); killing... )
adb server version (32) doesn't match this client (41); killing...could not read ok from ADB Server* failed to start daemonadb.exe: failed to check server version: cannot connect to daemon原创 2024-04-10 18:14:54 · 13400 阅读 · 15 评论
分享