9.24–問題之Android studio 新建項目遇到的問題
[2015-01-27 21:31:50 - appcompat_v7] D:\workspace\appcompat_v7\res\values-v21\styles_base_text.xml:62: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
剛新疆項目時會遇到已上問題,之前好幾次都遇到這種問題,但是就是找不到原因。今天新建項目又遇到這個問題,只是values-v21換成values-v23,後來百度,終於找到問題。
解決方法是:在app中的build.gradle文件中修改 compileSdkVersion爲23即可。保險起見,buildToolsVersion 值也修改爲”23.0.1”。完美解決問題。