2017-09-28 126 views
0

下面是我的Gridle文件, 我尝试了每个可能的解决方案,从stackoverflow其他的answare问题,但它仍然显示相同。错误,同时运行android studio项目

错误:

Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

GRIDLE:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion "26.0.2" 

    defaultConfig { 
     applicationId "net.mobilegts.redemption.evolution" 
     minSdkVersion 14 
     targetSdkVersion 23 

     ndk { 
      moduleName "player_shared" 
     } 
    } 

    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     } 
    } 
} 

dependencies { 
    compile 'com.google.android.gms:play-services:+' 
    compile files('libs/dagger-1.2.2.jar') 
    compile files('libs/javax.inject-1.jar') 
    compile files('libs/nineoldandroids-2.4.0.jar') 
    compile files('libs/support-v4-19.0.1.jar') 
} 

这里是XML它是用于:

<?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> 

其他一些错误而改变的minSdkVersion至11

Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : uses-sdk:minSdkVersion 11 cannot be smaller than version 14 declared in library [com.google.android.gms:play-services:11.0.4] C:\Users\Herry.android\build-cache\789f0b2db1622f43f20c9fb40bf82eb406ac929b\output\AndroidManifest.xml Suggestion: use tools:overrideLibrary="com.google.android.gms.play_services" to force usage

+0

将您的XML文件发布到您尝试使用无边界属性的地方 – MadScientist

+0

为什么在您可以从Maven回购库进行编译时使用JAR? – Kunu

+0

您的styles.xml文件可能存在问题。你也应该发布它。 –

回答

0

更改buildTools版本至23.0.2

+0

您不必使用较低的buildToolsVersion。你也可以使它与更高版本一起工作。 – Kunu

+0

错误:对于项目':app',SDK构建工具修订版(23.0.2)太低。最少需要为25.0.0 Update Build Tools version and sync project
Open File

+0

然后更改compileSdkVersion您海格版本 –