简体   繁体   中英

minSdkVersion 26 or later and just with mipmap-anydpi containing ic_launcher icons

I wonder, when my new project is minSdkVersion 26 (or later), that I can safely delete these mipmap-*dpi folders and their content ic_launcher icons, and then simply with mipmap-anydpi (renamed from mipmap-anydpi-v26 ) folder containing vector icons ( ic_launcher.xml and ic_launcher_round.xml ).

Android Studio 屏幕截图

It seems no problem to build a such project. Are there any potential problem I don't aware with this?

Event though it builds without issues, there seems to be a difference. I just did the same—upgrade the minSdkVersion to 26, then rename the folders to drop -v26 . Afterwards, the app icon looked different on the same Android 12 device I had used before to test the old behaviour.

This comment supports that observation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM