Tidak dapat menyelesaikan simbol 'Theme.AppCompat.Light.DarkActionBar' di styles.xml

Theme.AppCompat.Light.DarkActionBar tidak dikompilasi dalam styles.xml. Saya telah menambahkan compile 'com.android.support:appcompat-v7:25.1.0' di modul aplikasi build.gradle. 1

Saya telah mencari solusi di google. Banyak dari mereka adalah tentang mengubah classpath di Project' s build.gradle.Still its showing the same error.

build.gradle

dependencies {
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:design:25.1.0'
    compile 'com.android.support:support-annotations:25.1.0'
    compile 'com.android.support:cardview-v7:25.1.0'
    compile 'com.android.support:recyclerview-v7:25.1.0'
    //    compile 'ch.acra:acra:4.5.0'

    testCompile 'junit:junit:4.12'
}

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 25
        versionCode = 146
        versionName = "0.6.65"
    }

Periksa file build.gradle Anda, setel compileSdkVersion ke 25. Gradle berikut ini bekerja untuk saya dengan appcompat-v7: 25.1.0'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    defaultConfig {
        applicationId "xxx.xx.xxxxx"
        minSdkVersion 16
        targetSdkVersion 21
        versionCode 26
        versionName "3.16"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    //compile 'com.google.firebase:firebase-messaging:9.0.1'
    compile 'com.android.support:appcompat-v7:25.1.0'
}
Komentar (4)
compile 'com.android.support:appcompat-v7:23.4.0'

coba ini

Komentar (4)

Ubah dalam file style.xml sebagai &

Komentar (0)