我在android studio中启动新项目时收到这些错误。
错误:(1)检索项目的父项时出错:未找到与给定名称'android:TextAppearance.Material.Widget.Button.Borderless.Colored'相匹配的资源。
错误:(1)检索项目的父项时出错:未找到与给定名称'android:TextAppearance.Material.Widget.Button.Borderless.Colored'相匹配的资源。
错误:任务':app:processDebugResources'的执行失败。com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'command'C:\ Program Files(x86)\ Android \ android-sdk \ build-tools \ 23.0.2 \ aapt .exe''以非零退出值1结束
android项目中的文件包含错误如下:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Base.TextAppearance.AppCompat.Widget.Button.Borderless.Colored" parent="android:TextAppearance.Material.Widget.Button.Borderless.Colored"/>
<style name="Base.TextAppearance.AppCompat.Widget.Button.Colored" parent="android:TextAppearance.Material.Widget.Button.Colored"/>
<style name="TextAppearance.AppCompat.Notification.Info.Media"/>
<style name="TextAppearance.AppCompat.Notification.Media"/>
<style name="TextAppearance.AppCompat.Notification.Time.Media"/>
<style name="TextAppearance.AppCompat.Notification.Title.Media"/>
</resources>
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.anmol.checkboxapp"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.1.0'
}
如果有人可以解决此问题,请帮助
compile 'com.android.support:appcompat-v7:23.4.0'
@ rafsanahmad007