https://android-arsenal.com/details/1/4136
无法集成此库
遇到此错误 - java.lang.NoClassDefFoundError:解析失败:Landroid / support / v4 / os / BuildCompat;
这是我的傻瓜:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "matrixdev.com.waitel"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.google.code.gson:gson:2.4'
compile 'com.android.support:recyclerview-v7:23.2.0'
compile 'com.android.support:cardview-v7:23.0.+'
compile 'com.cepheuen.elegant-number-button:lib:1.0.2'
compile('com.android.support:support-v4:23.3.0') {
force = true;
}
}
答案 0 :(得分:0)
您是否尝试删除最后一次编译的括号?像这样:
compile 'com.android.support:support-v4:23.3.0'
而不是:
compile('com.android.support:support-v4:23.3.0')