app 配置信息如下 androidx
依赖项目如下:
当配置信息升级到androidx 时就会报错,报错如下 :
这时需要在主工程的build.xml里添加
classpath 'com.novoda:bintray-release:0.9' 具体看下面配置
然后在依赖库里添加
build.xml一级目录添加节点 然后编译
apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = 'uccmawei'
groupId = 'com.wei.android.lib'
artifactId = 'fingerprintidentify'
publishVersion = '1.2.6'
desc = 'Android fingerprint api for Android, Samsung, MeiZu.'
website = 'https://github.com/uccmawei/FingerprintIdentify'
}
apply plugin: 'com.android.library'
//apply plugin: 'com.novoda.bintray-release'
android {
compileSdkVersion rootProject.ext.version.compileSdkVersion
buildToolsVersion rootProject.ext.version.buildToolsVersion
defaultConfig {
minSdkVersion rootProject.ext.version.minSdkVersion
targetSdkVersion rootProject.ext.version.targetSdkVersion
versionCode rootProject.ext.version.versionCode
versionName rootProject.ext.version.versionName
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
android {
lintOptions {
abortOnError false
}
}
repositories {
flatDir {
dirs 'libs'
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation "$rootProject.ext.dependencies.appcompat_v7"
}
//publish {
// userOrg = 'uccmawei'
// groupId = 'com.wei.android.lib'
// artifactId = 'fingerprintidentify'
// publishVersion = '1.2.6'
// desc = 'Android fingerprint api for Android, Samsung, MeiZu.'
// website = 'https://github.com/uccmawei/FingerprintIdentify'
//}
最后同步下资源,编译通过如下