Android 指纹识别注意升级问题

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'
//}

最后同步下资源,编译通过如下 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值