我的风格有什么问题?无法解析符号Theme.AppCompat.Light.NoActionBar

K.S*_*eak 3 android android-appcompat android-studio android-styles

目前,我的styles.xml文件显示不正确的内容.Theme.AppCompat.Light.NoActionBar无法解决.我已经重新启动android studio但它仍然无法正常工作.我尝试了Invalidate Caches/Restart,但它不起作用.它不会使我的应用程序崩溃,但为什么会发生.看下图:

.

这是我的build.gradle文件

import org.apache.tools.ant.taskdefs.condition.Os

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "xx.com.xxx.xxxx"
        minSdkVersion 17
        targetSdkVersion 23
        versionCode 21
        versionName "1.2.0"
        renderscriptTargetApi 23
        renderscriptSupportModeEnabled true

        // Enabling multidex support.
        multiDexEnabled true
    }

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile('com.afollestad.material-dialogs:core:0.8.5.1@aar') {
        transitive = true
    }
    compile('com.mikepenz:actionitembadge:3.0.2@aar') {
        transitive = true
    }
    compile project(':blurringview')
    compile 'com.android.support:support-v4:23.3.0'
    compile 'com.android.support:appcompat-v7:23.3.0'
    compile 'com.android.support:design:23.3.0'
    compile 'com.android.support:cardview-v7:23.3.0'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile 'com.google.android.gms:play-services-gcm:8.3.0'
    compile 'com.android.support:palette-v7:23.3.0'
    compile 'com.android.support:multidex:1.0.1'
    compile 'com.wdullaer:materialdatetimepicker:1.5.1'
    compile 'com.pnikosis:materialish-progress:1.5'
    compile 'com.mikepenz:iconics:1.3.0@aar'
    compile 'com.mikepenz.iconics:community-material-typeface:+@aar'
    compile 'com.soundcloud.android:android-crop:1.0.0@aar'
    compile 'org.apache.commons:commons-lang3:3.4'
     ...
}

...
}
Run Code Online (Sandbox Code Playgroud)

K.S*_*eak 8

最后,这是我的第一个解决方案.发生错误是因为gradle无法使用具有较低版本的库.它不编译外部库appcompat-v7:23.3.0.我现在做的是降级gradle插件frorm 2. +到2.2.0并重建项目.它现在再次运作.

此链接显示如何降级版本gradle [Link].

思想并不是一个好主意,但确实解决了我的问题.

任何其他想法或评论要改进,欢迎.