From d6fc9ae3e9a8dc6f0e8dd386510e99fc5ad5d454 Mon Sep 17 00:00:00 2001 From: liyuqi Date: Sat, 5 Jul 2025 20:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0README=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 39 ++++++++++++++++++++++++++++++++++----- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 76e9b45..56aa475 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,36 @@ ### 食用指南 -* npm install -* cd android -* ./gradlew clean -* npm start -* npm run android \ No newline at end of file +* **npm install** +* **cd android** +* **./gradlew clean** +* **npm start** +* **npm run android** + +### 如何解决Android Studio的图标不显示bug + +1. **强制重建字体资源**(90% 的问题根源) + + ``` + # 1. 清理构建缓存 + cd android + ./gradlew clean + + # 2. 确保字体文件被正确复制(关键!) + # 检查 android/app/build.gradle 是否存在此行: + apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" + + # 3. 手动触发字体复制(如果 fonts.gradle 已存在) + ./gradlew :app:processDebugResources --info + ``` + +2. **清除模拟器缓存**: + + - 在模拟器中操作:`Settings` → `Apps` → 找到您的应用 → `Storage` → `Clear Cache` + `Clear Data` + + - 或使用命令行: + + ``` + adb shell pm clear com.your.app.package # 替换为实际包名 + ``` + +3. **重启模拟器, 重启metro服务**