且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

android.graphics.drawable.AdaptiveIconDrawable无法转换为android.graphics.drawable.BitmapDrawable错误

更新时间:2023-10-07 08:38:34

似乎您正在使用 App Theme Engine ,它会尝试将您的应用程序图标用作位图.但是从Android 8.0开始,您可以设置自适应图标(不是位图),因此App Theme Engine崩溃.

It appears you're using App Theme Engine, which tries to use you app icon as a bitmap. But since Android 8.0 you can set an adaptive icon, which is not a bitmap, thus the App Theme Engine crashes on it.

此问题已在此处报告,但尚未得到已修复(可能不会,因为两年未见任何更新).

This issue has been reported here, but it's not been fixed yet (and probably won't, since it hasn't seen any updates for two years).

通过分叉项目并更改

You might be able so fix this yourself by forking the project and changing the problematic part to not require a bitmap icon. Or alternatively, use another theme engine.