我正在尝试从android studio 0.8.1(beta)上的eclipso导入项目,并且每件事情都正确但appcompat-v7 attr上的错误相同。我有以下gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion '19.1.0'
defaultConfig {
applicationId "package"
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile project(":facebook")
compile project(":socketConnetion")
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.0.+'
compile 'com.android.support:support-v4:20.+'
compile 'com.google.android.gms:play-services:+'
}
当我同步gradle时,我不断收到错误:
/Users/tiag`omissiato/AndroidstudioProjects/Get/build/intermediates/exploded-aar/com.android.support/appcompat-v7/19.0.1/res/values/values.xml
Error:(432, 21) No resource found that matches the given name: attr 'dropdownListPreferredItemHeight'.
Error:(434, 21) No resource found that matches the given name: attr 'popupMenuStyle'.
Error:(432, 21) No resource found that matches the given name: attr 'dropdownListPreferredItemHeight'.
Error:(434, 21) No resource found that matches the given name: attr 'popupMenuStyle'.
Error:(432, 21) No resource found that matches the given name: attr 'dropdownListPreferredItemHeight'.
[...]
任何帮助??
答案 0 :(得分:6)
已从问题中的修改
移出只是为了让你知道,如果同一个人遇到同样的问题。
在我的情况下与我正在使用的库(CircularImageView
)发生冲突,该库有一个名为declare-styleable
的{{1}}导致了我的问题,因此我更改为{{1现在一切都很完美。
如果您不知道Theme
属性在哪里:ThemeCircularImageView
- > declare-styleable