#Mobile
共 39 篇文章
解决 Flutter 报错 A RenderFlex overflowed by xxx pixels 布局溢出黄黑条修复
排查 在 Flutter 页面布局中使用 Column 或 Row 嵌套长文本或大量子组件时界面出现黄黑相间警示条并报错 A RenderFlex overflowed by 48 pixels on the bottom,分析 Flex 约束与 Expanded / SingleChildScrollView 解决方案。
解决 Flutter 报错 Waiting for another process to release lock 锁死修复
排查执行 flutter pub get 长时间卡死在 Waiting for another flutter command to release the startup lock,删除 SDK 锁文件与结束孤儿进程。
解决 React Native 报错 Unable to load script 调试端口连接修复
排查 Android 真机运行 React Native 提示 Unable to load script. Make sure Metro is running,通过 adb reverse 端口映射与配置 Dev Settings。
解决 Android AAPT2 报错 resource linking failed XML 资源链接失败修复
排查 Android 构建时 AAPT2 抛出 resource linking failed / resource android:attr/lStar not found 错误,升级 compileSdk 与解决 XML 冲突。
解决 React Native 报错 Invariant Violation main has not been registered 修复
排查 在 React Native 启动 iOS 或 Android 应用时抛出 Invariant Violation: Application main has not been registered 红色红屏,分析 AppRegistry 注册名称与原生原生代码 AppDelegate / MainActivity 不一致。
解决 iOS SwiftPM 报错 Package resolution failed 依赖解析失败修复
排查 Xcode 使用 Swift Package Manager 提示 Package resolution failed 错误,重置 SPM 全局 Git 缓存与重新解析 Package.resolved。
解决 Android 模拟器启动报错 The emulator process has terminated GPU修复
排查 Android Studio AVD 启动秒退提示 The emulator process for AVD has terminated,分析 GPU 驱动与调整 config.ini 渲染模式。
解决 iOS 模拟器报错 Unable to boot the Simulator 启动挂死修复
排查 macOS 启动 iOS 模拟器提示 Unable to boot the Simulator in current state: Booting 错误,通过 killall 与 simctl 恢复状态。
解决 Android Gradle 报错 Direct local aar dependencies not supported 依赖修复
排查 Android Gradle Plugin 8.0+ 报 Direct local .aar file dependencies are not supported 错误,介绍独立模块封装与 flatDir 替代方案。
解决 Flutter Android 编译 Manifest merger failed allowBackup 冲突修复
排查 在 Flutter 构建 Android APK 时 Gradle 抛出 Manifest merger failed: Attribute application@allowBackup value=(true) ... is also present at ... with value=(false),分析 Android 清单合并规则与 tools:replace 属性覆盖。
解决 Flutter iOS 报错 CocoaPods not installed 环境检测失败修复
排查执行 flutter run 提示 Warning: CocoaPods not installed. Skipping pod install 错误,配置 Homebrew CocoaPods 路径与修复 Ruby 环境。
解决 React Native Android 编译报错 Duplicate class HybridData 修复
排查 在编译 React Native Android 工程时 Gradle 报错 Duplicate class com.facebook.jni.HybridData found in modules fbjni and react-android,分析 Gradle 依赖冲突与 exclude 规则配置。
解决 iOS Xcode 报错 No such module 编译符号未找到修复
排查 Xcode 编译 Swift 代码提示 No such module 错误,检查 xcworkspace 打开方式与 Framework Search Paths 继承配置。
解决 Android 报错 Cannot fit requested classes in a single dex 64K限制修复
排查 Android 构建时报错 The number of method references cannot exceed 64K,配置 multiDexEnabled 与 MultiDexApplication 分包。
解决 Electron 报错 Unable to load preload script contextBridge 修复
排查 在 Electron 应用启动 BrowserWindow 时控制台报错 Unable to load preload script 或 contextBridge.exposeInMainWorld fails with symbol not found,分析 preload 路径解析与安全上下文隔离。
解决 React Native 报错 Native module cannot be null 原生模块未链接修复
排查 在 React Native 中引入原生第三方库后运行报出 TypeError: Cannot read property of null 或 Native module cannot be null,分析 Auto-linking 机制与原生包注册。
解决 React Native Xcode 编译报错 PhaseScriptExecution failed 修复
排查 在 macOS 上使用 Xcode 编译 React Native iOS 项目时在 Bundle React Native code and images 阶段遭遇 Command PhaseScriptExecution failed with a nonzero exit code,分析 Node 路径环境与 CocoaPods 脚本配置。
解决 Flutter 报错 Android sdkmanager license not accepted 修复
排查 在搭建 Flutter 开发环境或运行 CI 流水线时执行 flutter doctor 或 flutter build apk 报错 Android license status unknown 或 sdkmanager not accepted,分析 Android SDK 授权协议与接受指令。
解决 iOS Xcode 报错 Command PhaseScriptExecution failed 脚本执行修复
排查 Xcode 15 构建阶段提示 Command PhaseScriptExecution failed with a nonzero exit code,关闭沙盒限制与修复 rsync 权限。


