我尝试将支持库更新到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
提交
取消