AppCompat ActionBar加载失败,出现未知错误

时间:2018-08-02 10:18:21

标签: android android-layout android-appcompat

无法加载未知错误的AppCompatActionBar

dependencies {
    classpath 'com.android.tools.build:gradle:3.1.3'
}

Build.gradle(Module:app)

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-beta01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso- 
core:3.0.2'
}

1 个答案:

答案 0 :(得分:0)

尝试一下

    implementation 'com.android.support:appcompat-v7:26.0.0'

具有:

    buildToolsVersion '26.0.0' 

    classpath 'com.android.tools.build:gradle:3.1.3'