久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

檢索項(xiàng)目的父項(xiàng)時(shí)出錯(cuò):找不到與給定名稱“and

Error retrieving parent for item: No resource found that matches the given name #39;android:TextAppearance.Material.Widget.Button.Borderless.Colored#39;(檢索項(xiàng)目的父項(xiàng)時(shí)出錯(cuò):找不到與給定名稱“android:TextAppearance.Materia
本文介紹了檢索項(xiàng)目的父項(xiàng)時(shí)出錯(cuò):找不到與給定名稱“android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的資源的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

我在 android studio 中啟動(dòng)新項(xiàng)目時(shí)收到這些錯(cuò)誤.

<塊引用>

錯(cuò)誤:(1) 檢索項(xiàng)目的父項(xiàng)時(shí)出錯(cuò):未找到與給定名稱android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的資源.

錯(cuò)誤:(1) 檢索項(xiàng)目的父項(xiàng)時(shí)出錯(cuò):未找到與給定名稱android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的資源.

錯(cuò)誤:任務(wù) ':app:processDebugResources' 執(zhí)行失敗.com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program Files (x86)Androidandroid-sdkuild-tools23.0.2aapt.exe'' 以非零退出值 1 結(jié)束

android項(xiàng)目中的文件包含錯(cuò)誤如下:

 <?xml version="1.0" encoding="utf-8"?><資源><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"/></資源>

build.gradle:

應(yīng)用插件:'com.android.application'安卓 {compileSdkVersion 23構(gòu)建工具版本23.0.2"默認(rèn)配置 {applicationId "com.example.anmol.checkboxapp"minSdkVersion 15targetSdkVersion 23版本代碼 1版本名稱1.0"}構(gòu)建類型 {發(fā)布 {縮小啟用假proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'}}}依賴{編譯 fileTree(dir: 'libs', include: ['*.jar'])編譯'com.android.support:appcompat-v7:25.1.0'}

如果有人解決了這個(gè)問(wèn)題,請(qǐng)幫忙

解決方案

您編譯的SDK版本必須與支持庫(kù)匹配.以下一項(xiàng)也是如此:

1.在你的 Build.gradle 更改

編譯'com.android.support:appcompat-v7:23.0.1'

2.或改變:

compileSdkVersion 23構(gòu)建工具版本23.0.2"

compileSdkVersion 25構(gòu)建工具版本25.0.2"

當(dāng)你使用時(shí):compile 'com.android.support:appcompat-v7:25.3.1'

我建議使用第二種方法,因?yàn)樗褂玫氖亲钚碌?sdk - 這樣您就可以利用最新的 sdk 的新功能.

最新示例 build.gradle 與構(gòu)建工具 27.0.2 --

瀏覽此答案 使用 Google Maven 存儲(chǔ)庫(kù)

輕松升級(jí)

編輯

如果您使用的是 Facebook 帳戶工具包

不要使用:compile 'com.facebook.android:account-kit-sdk:4.+'

改為使用特定版本,例如:

編譯'com.facebook.android:account-kit-sdk:4.12.0'

使用 sdk 23 的 account kit 中的最新版本存在問(wèn)題

編輯

對(duì)于 Facebook Android Sdk

在您的 build.gradle 中,而不是:

編譯 'com.facebook.android:facebook-android-sdk: 4.+'

使用特定版本:

編譯'com.facebook.android:facebook-android-sdk:4.18.0'

Facebook sdk 中的最新版本與 Android sdk 版本 23 存在問(wèn)題.

I received these errors when i started new project in android studio.

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

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

Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program Files (x86)Androidandroid-sdkuild-tools23.0.2aapt.exe'' finished with non-zero exit value 1

File in android project contains error is given below:

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

If anyone have solution of this problem so please help

解決方案

Your compile SDK version must match the support library. so do one of the following:

1.In your Build.gradle change

compile 'com.android.support:appcompat-v7:23.0.1'

2.Or change:

compileSdkVersion 23
buildToolsVersion "23.0.2"

to

compileSdkVersion 25
buildToolsVersion "25.0.2"

As you are using : compile 'com.android.support:appcompat-v7:25.3.1'

i would recommend to use the 2nd method as it is using the latest sdk - so you can able to utilize the new functionality of the latest sdk.

Latest Example of build.gradle with build tools 27.0.2 -- Source

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion "27.0.2"
    defaultConfig {
        applicationId "your_applicationID"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:27.0.2'
    compile 'com.android.support:design:27.0.2'
    testCompile 'junit:junit:4.12'
}

If you face problem during updating the version like:

Go through this Answer for easy upgradation using Google Maven Repository

EDIT

if you are using Facebook Account Kit

don't use: compile 'com.facebook.android:account-kit-sdk:4.+'

instead use a specific version like:

compile 'com.facebook.android:account-kit-sdk:4.12.0'

there is a problem with the latest version in account kit with sdk 23

EDIT

For Facebook Android Sdk

in your build.gradle instead of:

compile 'com.facebook.android:facebook-android-sdk: 4.+'

use a specific version:

compile 'com.facebook.android:facebook-android-sdk:4.18.0'

there is a problem with the latest version in Facebook sdk with Android sdk version 23.

這篇關(guān)于檢索項(xiàng)目的父項(xiàng)時(shí)出錯(cuò):找不到與給定名稱“android:TextAppearance.Material.Widget.Button.Borderless.Colored"匹配的資源的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

相關(guān)文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現(xiàn) IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當(dāng)前風(fēng)味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復(fù)“意外元素lt;查詢gt;在“清單中找到錯(cuò)誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風(fēng)味庫(kù)的多風(fēng)味應(yīng)用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運(yùn)行時(shí)有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫(kù)的傳遞依賴)
主站蜘蛛池模板: 午夜一级做a爰片久久毛片 精品综合 | 久久国产一区二区 | 久久久久无码国产精品一区 | 91视频播放 | 亚洲高清一区二区三区 | 精一区二区 | 国产人免费人成免费视频 | a毛片| 亚洲精品久久久久中文字幕欢迎你 | 欧美久久视频 | 91精品国产综合久久香蕉麻豆 | 欧美精品三区 | 日韩欧美大片在线观看 | 99久久精品免费视频 | 日韩三| 日韩久草 | 亚洲性在线 | 国产 欧美 日韩 一区 | 国产精品国产精品国产专区不卡 | 国产高清精品一区 | 欧美日韩在线免费 | 国产国语精品 | 亚洲激情视频在线 | 亚洲欧美中文日韩在线v日本 | 草草视频在线观看 | 中文字幕欧美在线观看 | 国产日韩精品视频 | 国产精品久久久久久影视 | 国产成人亚洲精品自产在线 | 成人一区二 | 国产亚洲欧美在线 | 国产一二区在线 | 欧美性久久 | 国产成人精品一区二 | 孰女乱色一区二区三区 | 欧美人妖网站 | 国产aaaaav久久久一区二区 | 国产精品黄色 | 日韩视频精品在线 | 欧美一级做a爰片免费视频 国产美女特级嫩嫩嫩bbb片 | 羞羞的视频在线观看 |