简体   繁体   中英

Didn't find class “adaptive-icon” on path: DexPathList after adding adaptive icons

Like the title says, I get that error after switching to adaptive icons and trying to load R.ic_launcher. What am I doing wrong here? The icons also shows up as the default green android in the launcher.

The issue is that apis lower than 26 don't support the class. To fix, rename the folder with the ic_launcher.xml file to mipmap-anydpi-v26.

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