Failed to load AppCompat ActionBar with unknown error?

后端 未结 5 1507
执念已碎
执念已碎 2021-01-02 06:26

build.gradle file

    apply plugin: \'com.android.application\'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId \"io.d         


        
5条回答
  •  时光取名叫无心
    2021-01-02 07:21

    This worked for me when that happened, I dont know why it doesn't work with 28:

    //use this instead 
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    targetSdkVersion 27
    
    dependencies{
    
    //switch to these
    implementation 'com.android.support:appcompat-v7:27.0.0-alpha'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:design:27.0.0'
    
    }
    

提交回复
热议问题