android - support libraries 23.2.0 cause app to crash

坚强是说给别人听的谎言 提交于 2019-11-28 21:28:38

There seems to be a drawable mutation bug as being worked on Google with the 23.2.0 release. See the issue here. Reverting back to 23.1.1 should be fine until the next bugfix release.

Same thing happens to me. I partially fixed it reverting to 23.1.1 on support:design.

@CesarPim yes it is, I have a same problem for CheckBox, although I can fix that problem by creating abc_btn_check_material.xml inside drawable folder and adding following lines I can't be sure where it will break next. You can find drawables and selector code on this link: https://github.com/NativeScript/nativescript-plugin-appcompat/tree/master/platforms/android/appcompat/res/drawable

<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_checked="true" android:drawable="@drawable/abc_btn_check_to_on_mtrl_015" />
    <item android:drawable="@drawable/abc_btn_check_to_on_mtrl_000" />
</selector>

Just had the problem myself. A quick update via the SDK Manager seems to have solved the issue.

On a side note, none of my build.gradle dependencies actually used the 23.2.0, but I still received the error. Trying to 'downgrade' to 23.1.1 was not an option for me as I already was using that version.

As predicted by some of the people here, the problem disappeared as i began using the 23.2.1 support libraries. Thank you all for the support.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!