这是一个创建于 3326 天前的主题,其中的信息可能已经有所发展或是发生改变。
用 studio 创建的项目,
/home/yeelone/AndroidStudioProjects/MyApplication2/app/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.0.0/res/values-v23/values-v23.xml
Error:(2 ) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(2 ) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
以下是 build.gradle 的信息:
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.example.yeelone.myapplication"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile ('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
windows 下的 studio 并不会报这个错误,怎么在 ubuntu 下安装之后 会报这样的错误,对 android studio 不熟悉,求指教 。
7 条回复 • 2015-08-24 23:05:46 +08:00
|
|
1
bkmi 2015-08-23 21:03:21 +08:00
你看到你的报错信息里的” values-v23 “了么,而你用的 compileSdkVersion 却是 22 的
|
|
|
2
yeelone 2015-08-23 21:05:35 +08:00 via Android
@ bkmi 一路默认创建的,为什么会出现版本不一致的问题呢?
|
|
|
3
bkmi 2015-08-23 21:09:44 +08:00
AndroidStudio 出的低级 bug 可不少了,不在乎这一两个。
|
|
|
4
Lanceliel 2015-08-23 23:04:47 +08:00
这标题吓我一跳……还在想我 ubuntu studio 用得好好的哪来的问题。 点进来一看原来是说 ubuntu 下的 Android Studio 。 两种解决方式:换 SDK 23 ,或者把 SDK 23 干掉用 SDK 22 。
|
|
|
5
jinhan13789 2015-08-24 06:51:53 +08:00 via Android
这只是其中一个问题而已,你以后遇到的更多,给你一个经验~ 看 log 从下往上看,一般真正的错误在倒数 3 ~ 8 个错误点。表问我怎么知道的
|