未找到与给定名称匹配的资源';android:TextAppearance.Material.Widget.Button.Inverse';。关于增加第三方图书馆
因此,当我在gradle文件中添加此库时,会出现此错误未找到与给定名称匹配的资源';android:TextAppearance.Material.Widget.Button.Inverse';。关于增加第三方图书馆,android,Android,因此,当我在gradle文件中添加此库时,会出现此错误 compile 'com.miguelcatalan:materialsearchview:1.4.0' 这是我的毕业档案 android { compileSdkVersion 22 buildToolsVersion "22.0.1" defaultConfig { applicationId "com.gnr.kumar.varun.songapp.songapp" minS
compile 'com.miguelcatalan:materialsearchview:1.4.0'
这是我的毕业档案
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.gnr.kumar.varun.songapp.songapp"
minSdkVersion 16
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.google.code.gson:gson:2.3.1'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
}
我怎样才能防止这种情况发生,有人能提出一些建议吗
'android:TextAppearance.Material.Widget.Button.Inverse'
您应该更改compileSdkVersion
compileSdkVersion 23 // compileSdkVersion is the version of the compiler used in building the app
buildToolsVersion "23.0.1"
然后
Clean Rebuild Sync
您的应用程序。更改编译DK23版
。