You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

Android Studio重构应用图标后部分图标未更新求助

Fixing Stale App Icons in Status Bar & System Pages After Update

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 to Build > Clean Project, then Build > Rebuild Project. After that, head to File > 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 every mipmap-* folder (hdpi, xhdpi, xxhdpi, xxxhdpi, etc.) and make sure both ic_launcher.png and ic_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 your AndroidManifest.xml and confirm the android:icon and android:roundIcon attributes 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 the ic_launcher.xml and ic_launcher_round.xml files in the res/drawable folder. Ensure the foreground drawable 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_foreground is 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’s Settings > Apps > [Your Launcher App] (e.g., Google Launcher, Samsung One UI Home), tap Storage > Clear Cache, then restart your phone. This will refresh all app icons in the launcher and status bar.

内容的提问来源于stack exchange,提问作者R Tomas

火山引擎 最新活动