While use xml icon.below error is produce api level 18 to 22
W/ResourceType: Bad XML block: header size 18254 or total size 169478669 is larger than data size 285
W/System.err: android.content.res.Resources$NotFoundException: File res/drawable-xhdpi-v4/ic_home_black_24dp.png from xml type xml resource ID #0x7f0700c4
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2361)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2316)
W/System.err: at android.content.res.Resources.getXml(Resources.java:988)
at androidx.appcompat.widget.ResourcesWrapper.getXml(ResourcesWrapper.java:188)
at androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.create(VectorDrawableCompat.java:654)
at com.etebarian.meowbottomnavigation.Utils.changeColorDrawableVector(Utils.java:43)
at com.etebarian.meowbottomnavigation.CellImageView.draw(CellImageView.java:148)
at com.etebarian.meowbottomnavigation.CellImageView.setColor(CellImageView.java:90)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.setProgress(MeowBottomNavigationCell.java:275)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.access$setProgress$p(MeowBottomNavigationCell.java:427)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell$MeowBottomNavigationCell$animateProgress$$inlined$apply$lambda$1.onAnimationUpdate(MeowBottomNavigationCell.java:464)
at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1251)
at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1175)
at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1216)
at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:524)
at android.animation.ValueAnimator.start(ValueAnimator.java:936)
at android.animation.ValueAnimator.start(ValueAnimator.java:946)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.animateProgress(MeowBottomNavigationCell.java:408)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.animateProgress$default(MeowBottomNavigationCell.java:417)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.disableCell(MeowBottomNavigationCell.java:376)
at com.etebarian.meowbottomnavigation.MeowBottomNavigation.show(MeowBottomNavigation.java:380)
at com.etebarian.meowbottomnavigation.MeowBottomNavigation.show$default(MeowBottomNavigation.java:393)
at com.etebarian.meowbottomnavigation.MeowBottomNavigation$1.onClickItem(MeowBottomNavigation.java:281)
at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell$2.onClick(MeowBottomNavigationCell.java:330)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: Corrupt XML binary file
at android.content.res.AssetManager.openXmlAssetNative(Native Method)
at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:488)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2343)
... 34 more
While use xml icon.below error is produce api level 18 to 22
W/ResourceType: Bad XML block: header size 18254 or total size 169478669 is larger than data size 285 W/System.err: android.content.res.Resources$NotFoundException: File res/drawable-xhdpi-v4/ic_home_black_24dp.png from xml type xml resource ID #0x7f0700c4 at android.content.res.Resources.loadXmlResourceParser(Resources.java:2361) at android.content.res.Resources.loadXmlResourceParser(Resources.java:2316) W/System.err: at android.content.res.Resources.getXml(Resources.java:988) at androidx.appcompat.widget.ResourcesWrapper.getXml(ResourcesWrapper.java:188) at androidx.vectordrawable.graphics.drawable.VectorDrawableCompat.create(VectorDrawableCompat.java:654) at com.etebarian.meowbottomnavigation.Utils.changeColorDrawableVector(Utils.java:43) at com.etebarian.meowbottomnavigation.CellImageView.draw(CellImageView.java:148) at com.etebarian.meowbottomnavigation.CellImageView.setColor(CellImageView.java:90) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.setProgress(MeowBottomNavigationCell.java:275) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.access$setProgress$p(MeowBottomNavigationCell.java:427) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell$MeowBottomNavigationCell$animateProgress$$inlined$apply$lambda$1.onAnimationUpdate(MeowBottomNavigationCell.java:464) at android.animation.ValueAnimator.animateValue(ValueAnimator.java:1251) at android.animation.ValueAnimator.animationFrame(ValueAnimator.java:1175) at android.animation.ValueAnimator.doAnimationFrame(ValueAnimator.java:1216) at android.animation.ValueAnimator.setCurrentPlayTime(ValueAnimator.java:524) at android.animation.ValueAnimator.start(ValueAnimator.java:936) at android.animation.ValueAnimator.start(ValueAnimator.java:946) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.animateProgress(MeowBottomNavigationCell.java:408) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.animateProgress$default(MeowBottomNavigationCell.java:417) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell.disableCell(MeowBottomNavigationCell.java:376) at com.etebarian.meowbottomnavigation.MeowBottomNavigation.show(MeowBottomNavigation.java:380) at com.etebarian.meowbottomnavigation.MeowBottomNavigation.show$default(MeowBottomNavigation.java:393) at com.etebarian.meowbottomnavigation.MeowBottomNavigation$1.onClickItem(MeowBottomNavigation.java:281) at com.etebarian.meowbottomnavigation.MeowBottomNavigationCell$2.onClick(MeowBottomNavigationCell.java:330) at android.view.View.performClick(View.java:4438) at android.view.View$PerformClick.run(View.java:18422) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) Caused by: java.io.FileNotFoundException: Corrupt XML binary file at android.content.res.AssetManager.openXmlAssetNative(Native Method) at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:488) at android.content.res.Resources.loadXmlResourceParser(Resources.java:2343) ... 34 more