2015-10-13 108 views
0

我有完整的SDK更新。儘管沒有新的更新可用,但是我在R中有錯誤。我在項目結構中更改了編譯SDK版本。那麼它顯示錯誤 錯誤:檢索父項的錯誤:找不到與給定名稱'android:TextAppearance.Material.Widget.Button.Inverse'相匹配的資源。Android Studio中的問題。無法解析符號R

+0

u能表明烏爾項目的build.gradle ......問題是在圖書館 –

+0

請將您的build.gradle文件,並讓其他人知道到底是什麼,你已經改變了 –

+0

buildscript { 庫{ jcenter() } 依賴項classpath'com.android.tools.build:gradle:1.0.0' //注意:不要在這裏放置您的應用程序依賴關係;他們屬於 //各個模塊的build.gradle文件 }} allprojects { 庫{ jcenter() }} 適用 – Gill

回答

0

Error retrieving parent for item: No resource found that matches the given name after upgrading to AppCompat v23

Your compile SDK version must match the support library's major version.

Since you are using version 23 of the support library, you need to compile against version 23 of the Android SDK.

Alternatively you can continue compiling against version 22 of the Android SDK by switching to the latest support library v22.

檢查支持庫的版本。我有同樣的問題,並且對我來說效果很好。

相關問題