Android Appcompat,启动时崩溃-可绘制标记向量无效

Android Appcompat,启动时崩溃-可绘制标记向量无效,android,android-support-library,Android,Android Support Library,启动我的应用程序时出错 ... Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.Toolbar ... Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_i

启动我的应用程序时出错

    ...
        Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.v7.widget.Toolbar
    ...
        Caused by: android.content.res.Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml from drawable resource ID #0x7f020013
    ...
        Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #17: invalid drawable tag vector
我的身材,格雷德尔

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
    }
}

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.1'

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 25
        multiDexEnabled true
        vectorDrawables.useSupportLibrary true
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.android.support:support-v4:25.0.1'
    compile 'com.android.support:appcompat-v7:25.0.1'
    compile 'com.android.support:design:25.0.1'
    compile 'com.android.support:preference-v14:25.0.1'
    compile 'com.android.support:preference-v7:25.0.1'
    compile 'com.android.support:recyclerview-v7:25.0.1'
    compile 'com.android.support:cardview-v7:25.0.1'
}

我没有使用矢量绘图,因此代码中没有相关错误。我尝试了所有可能的答案。应用程序继续在API上崩溃解决了该问题。在我的例子中,问题在于我在工具栏上应用的应用程序主题。我正在使用自定义颜色属性,充气机无法识别它,因为它指向任何地方

解决了问题。在我的例子中,问题在于我在工具栏上应用的应用程序主题。我正在使用自定义颜色属性,充气机无法识别它,因为它不指向任何地方

你有什么gradle插件?您没有使用矢量绘图,没有,但是支持库没有更新我的问题您需要在
useSupportLibrary=true
处使用等号吗?需要吗?没关系,我也试过了你有什么gradle插件?您没有使用矢量绘图,没有,但是支持库没有更新我的问题您需要在
useSupportLibrary=true
处使用等号吗?需要吗?没关系,我也试过了