ubuntu studio 创建 project 之后报的如下错误,请问如何解决 ?

2015-08-23 20:10:50 +08:00
 yeelone
用 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 不熟悉,求指教 。
2595 次点击
所在节点    问与答
7 条回复
bkmi
2015-08-23 21:03:21 +08:00
你看到你的报错信息里的” values-v23 “了么,而你用的 compileSdkVersion 却是 22 的
yeelone
2015-08-23 21:05:35 +08:00
@bkmi 一路默认创建的,为什么会出现版本不一致的问题呢?
bkmi
2015-08-23 21:09:44 +08:00
AndroidStudio 出的低级 bug 可不少了,不在乎这一两个。
Lanceliel
2015-08-23 23:04:47 +08:00
这标题吓我一跳……还在想我 ubuntu studio 用得好好的哪来的问题。
点进来一看原来是说 ubuntu 下的 Android Studio 。
两种解决方式:换 SDK 23 ,或者把 SDK 23 干掉用 SDK 22 。
jinhan13789
2015-08-24 06:51:53 +08:00
这只是其中一个问题而已,你以后遇到的更多,给你一个经验~
看 log 从下往上看,一般真正的错误在倒数 3 ~ 8 个错误点。表问我怎么知道的
yeelone
2015-08-24 20:20:34 +08:00
@Lanceliel 怎么弄都不行。真是操碎了心~~~~
Lanceliel
2015-08-24 23:05:46 +08:00
@yeelone 你是打算用 SDK 22 还是 23?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/215394

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX