The app is working just fine when using support library v23.1.1 plugin and run under Android 4.4.4 (API 19):
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
however when I build it using newer version (23.2) of android support library it crashes:
XmlPullParserException: Binary XML file line #17: invalid drawable tag vector
This happens when the app wants to inflate an alert dialog with a simple custom view. The custom view uses an XML file containing a <shape>
tag as one of its drawable.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid
android:color="@android:color/white" >
</solid>
<corners
android:radius="5dp">
</corners>
<stroke android:width="1dp" android:color="@color/AppColor" />
</shape>
Though I can't specifically pinpoint this SVG based drawable in the crash logs, but my guess is since Google introduced support for VectorDrawables
, it somehow clashes with my app.
Any hint or input on how to pinpoint the culprit is appreciated.