Theme.AppCompat.Light.DarkActionBar不在styles.xml中編譯。我在應用模塊的 build.gradle
中添加了compile 'com.android.support:appcompat-v7:25.1.0'
。 無法解析styles.xml中的符號'Theme.AppCompat.Light.DarkActionBar'
我在谷歌搜索解決方案。其中很多是關於更改Project的build.gradle
中的類路徑,仍然顯示相同的錯誤。
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"
}
嘗試清理該項目並重建 –
是否也如此,仍然存在。 – Arun
發佈你的gradle以及 –