Adaptive Icon not working

后端 未结 5 683
南旧
南旧 2021-02-05 13:16

manifest:



        
5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 14:22

    I tried to debug it using an . When I did so, I got a backtrace ending with:

    Caused by: java.lang.IllegalArgumentException: Path string cannot be empty.
    

    Turns out my ic_launcher_foreground.xml had some elements with empty android:pathData attributes.

    Deleting those empty s made the icon work!

提交回复
热议问题