为了账号安全,请及时绑定邮箱和手机立即绑定

将Android支持库更新为23.2.0导致错误:XmlPullParserException

将Android支持库更新为23.2.0导致错误:XmlPullParserException

白衣非少年 2019-10-09 16:19:28
我尝试将支持库更新到23.2.0并遇到此错误:Exception while inflating <vector>org.xmlpull.v1.XmlPullParserException: Binary XML file line #17<vector> tag requires viewportWidth > 0at android.support.graphics.drawable.VectorDrawableCompat.updateStateFromTypedArray(VectorDrawableCompat.java:535)at android.support.graphics.drawable.VectorDrawableCompat.inflate(VectorDrawableCompat.java:472)at android.support.graphics.drawable.VectorDrawableCompat.createFromXmlInner(VectorDrawableCompat.java:436)at android.support.v7.widget.AppCompatDrawableManager$VdcInflateDelegate.createFromXmlInner(AppCompatDrawableManager.java:829)at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:303)at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:178)at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:173)at android.support.v7.widget.TintTypedArray.getDrawable(TintTypedArray.java:60)at android.support.v7.widget.Toolbar.<init>(Toolbar.java:254)at android.support.v7.widget.Toolbar.<init>(Toolbar.java:196)at java.lang.reflect.Constructor.constructNative(Native Method)at java.lang.reflect.Constructor.newInstance(Constructor.java:417)at android.view.LayoutInflater.createView(LayoutInflater.java:594)at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)at android.view.LayoutInflater.inflate(LayoutInflater.java:492)at android.view.LayoutInflater.inflate(LayoutInflater.java:397)at android.view.LayoutInflater.inflate(LayoutInflater.java:353)at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:267)at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:129)at com.chotot.vn.v2.activities.MainActivity.onCreate(MainActivity.java:121)at android.app.Activity.performCreate(Activity.java:5133)
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 585 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信