Android Studio重构应用图标后部分图标未更新求助
Hey there! I’ve run into this exact headache before when updating app icons on Android—super frustrating when most icons refresh but system-related ones cling to the old design. Let’s walk through the most reliable fixes to get your wool icon showing everywhere:
Clean, Rebuild, and Invalidate Caches
Android Studio loves hanging onto old resource caches. First, go toBuild > Clean Project, thenBuild > Rebuild Project. After that, head toFile > Invalidate Caches..., check the box for "Invalidate and Restart", and let Studio reload. This wipes out any hidden cached old icon data.Double-Check All Mipmap Density Folders
Even if you think you replaced all icons, it’s easy to miss a density variant. Go through everymipmap-*folder (hdpi, xhdpi, xxhdpi, xxxhdpi, etc.) and make sure bothic_launcher.pngandic_launcher_round.png(if you use round icons) are your new wool icon. A single missed folder can make system pages stick to the old factory icon.Verify Manifest Icon Configurations
Open yourAndroidManifest.xmland confirm theandroid:iconandandroid:roundIconattributes point to your correct mipmap resources. They should look like this:<application android:icon="@mipmap/ic_launcher" android:roundIcon="@mipmap/ic_launcher_round" ...>Make sure there are no typos in the resource names, and they don’t accidentally reference old drawable files.
Uninstall & Reinstall the App
System-level components (like the status bar and app drawer) often cache app icons even after an update. Uninstall the app completely from your device, then run a fresh install from Android Studio. This forces the system to fetch the new icon resources from scratch.Check Adaptive Icon Files (Android 8.0+)
If you’re targeting API 26+, you’re likely using adaptive icons. Open theic_launcher.xmlandic_launcher_round.xmlfiles in theres/drawablefolder. Ensure theforegrounddrawable points to your new wool icon:<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <background android:drawable="@color/ic_launcher_background"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/> </adaptive-icon>Double-check that
@mipmap/ic_launcher_foregroundis your updated icon resource, not the old factory one.Clear System Launcher Cache
If all else fails, the system launcher itself might be holding onto the old icon. Go to your device’sSettings > Apps > [Your Launcher App](e.g., Google Launcher, Samsung One UI Home), tapStorage > Clear Cache, then restart your phone. This will refresh all app icons in the launcher and status bar.
内容的提问来源于stack exchange,提问作者R Tomas




