Coder Social home page Coder Social logo

Comments (9)

AnyLifeZLB avatar AnyLifeZLB commented on July 21, 2024 2

@tfl123
configurations.all {
//强制使用某个版本的依赖,若需强制多个依赖,可以逗号分割
resolutionStrategy.force 'com.squareup.okhttp3:okhttp:3.12.0', 'com.squareup.okio:okio:1.17.2'
}

// For example: target 28

// def camera_version = '1.1.0-alpha05'
// api "androidx.camera:camera-core:$camera_version"
// api "androidx.camera:camera-camera2:$camera_version"
// api "androidx.camera:camera-lifecycle:$camera_version"
// api "androidx.camera:camera-view:1.0.0-alpha25"

from faceverificationsdk.

AnyLifeZLB avatar AnyLifeZLB commented on July 21, 2024

可以做到使用,要调整依赖

from faceverificationsdk.

tfl123 avatar tfl123 commented on July 21, 2024

问题描述

集成io.github.anylifezlb:Face-Verification:3.6.9版本,编译不通过。
gradle:4.1.2,kotlin_version = '1.4.10',compileSdk 32
错误日志:

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> The minCompileSdk (33) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-32).
Dependency: androidx.camera:camera-view:1.3.0-alpha02.
AAR metadata file: /Users/mac/.gradle/caches/transforms-2/files-2.1/67c9e68697bac64b7df5d53f6c703430/jetified-camera-view-1.3.0-alpha02/META-INF/com/android/build/gradle/aar-metadata.properties.

Execution failed for JetifyTransform: /Users/mac/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar.
> Failed to transform '/Users/mac/.gradle/caches/modules-2/files-2.1/com.squareup.moshi/moshi/1.13.0/da685586facab9eb5c4fb630ce248be14e7da21b/moshi-1.13.0.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 60. (Run with --stacktrace for more details.)

手机品牌,型号

平板

Android 系统版本

Android 10

from faceverificationsdk.

tfl123 avatar tfl123 commented on July 21, 2024

androidx.camera:camera-xxx:1.3.0-alpha02系列组件版本号问题,compileSdk 32的情况下,外部引用如何可以正常使用,如果有方案,麻烦告知一下。

from faceverificationsdk.

tfl123 avatar tfl123 commented on July 21, 2024

感谢作者提供的解决方案,在这个基础之上gradle需要升级到7.0+便可顺利使用。

from faceverificationsdk.

T-b-t avatar T-b-t commented on July 21, 2024

请问Android设备 外置usb camera, 如是接入人脸识别功能?

from faceverificationsdk.

AnyLifeZLB avatar AnyLifeZLB commented on July 21, 2024

@T-b-t 按照下面的方式配置,如果不行那就是不兼容,需要定制化

    // 0 ,前置摄像头       1,后置摄像头    部分外接摄像头支持可能是1
    val cameraXFragment = CameraXAnalyzeFragment.newInstance(CAMERA_ORIGINAL,getSharedPreferences(
        "faceVerify", Context.MODE_PRIVATE).getInt("cameraFlag",0))

from faceverificationsdk.

atclever avatar atclever commented on July 21, 2024

摄像框能调整焦距吗

from faceverificationsdk.

AnyLifeZLB avatar AnyLifeZLB commented on July 21, 2024

摄像框能调整焦距吗

@atclever 可以

第一个参数0/1 指定前后摄像头; 第二个参数linearZoom [0.1f,1.0f] 指定焦距,默认0.1
val cameraXFragment = CameraXFragment.newInstance(0,0.1f)

建议[Fork] + [Star] 关注订阅# FaceVerificationSDK 以便获取最新更新消息

from faceverificationsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.