我正在尝试使用 activeandroid ,在Android 6和7上一切正常 但当我尝试在 OS 5 上运行时,我得到:
java.lang.NoClassDefFoundError:android.support.v4.hardware.fingerprint.FingerprintManagerCompatApi23
android {
compileSdkVersion 24
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.koa.testactive"
minSdkVersion 16
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:cardview-v7:24.2.1'
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:support-v4:24.2.1'
testCompile 'junit:junit:4.12'
//compile 'com.github.satyan:sugar:1.5'
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
}
答案 0 :(得分:0)
也许ActiveAndroid导致了这个问题,将其版本更改为最新版本并重试