2015-08-23 43 views
0

当我去干净的项目时,我留下了3个错误,我不知道该怎么办,下面的代码。请有人可以帮忙吗?构建文件夹显示错误n

<?xml version="1.0" encoding="utf-8"?> 
<resources> 
    <!-- From:  
file:/usr/local/google/buildbot/repo_clients/https___googleplex- 
android.googlesource.com_a_platform_manifest.git/mnc- 
release/frameworks/support/v7/appcompat/res/values- 
v23/styles_base_text.xml --> 
<eat-comment/> 
<style name="Base.TextAppearance.AppCompat.Widget.Button.Inverse" parent="android:TextAppearance.Material.Widget.Button.Inverse"/> 
<!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/mnc-release/frameworks/support/v7/appcompat/res/values-v23/themes_base.xml --> 
<eat-comment/> 
<style name="Base.Theme.AppCompat" parent="Base.V23.Theme.AppCompat"/> 
<style name="Base.Theme.AppCompat.Light" parent="Base.V23.Theme.AppCompat.Light"/> 
<style name="Base.V23.Theme.AppCompat" parent="Base.V22.Theme.AppCompat"> 
    <!-- We can use the platform drawable on v23+ --> 
    <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> 

    <item name="controlBackground">@drawable/abc_control_background_material</item> 
</style> 
<style name="Base.V23.Theme.AppCompat.Light" parent="Base.V22.Theme.AppCompat.Light"> 
    <!-- We can use the platform drawable on v23+ --> 
    <item name="actionBarItemBackground">?android:attr/actionBarItemBackground</item> 

    <item name="controlBackground">@drawable/abc_control_background_material</item> 
</style> 
<!-- From: file:/usr/local/google/buildbot/repo_clients/https___googleplex-android.googlesource.com_a_platform_manifest.git/mnc-release/frameworks/support/v7/appcompat/res/values-v23/styles_base.xml --> 
<eat-comment/> 
<style name="Base.Widget.AppCompat.Button.Colored" parent="android:Widget.Material.Button.Colored"/> 

+0

可能的重复[Android Studio - 无法运行项目 - 检索项的父项时出错](http://stackoverflow.com/questions/32158183/Android的工作室着经营项目 - 错误检索父换项) –

回答

0

检查出你的build.gradle文件,并进行更改如下,

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion "23.0.0" 

defaultConfig { 
    applicationId "com.example.inzi.app" 
    minSdkVersion 9 
    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:23.0.0' 
} 

检查的compileSdkVersion(应该是23),buildTiilVersion(应该是23),并依赖关系( 'com.android.support:appcompat-v7:23.0.0')......

让我知道,如果它的工作原理...

并将其标记为答案,以便对其他人有用...