minivision-ai / Silent-Face-Anti-Spoofing-APK

Apache License 2.0
258 stars 131 forks source link

编译报错? #24

Open watertianyi opened 2 years ago

watertianyi commented 2 years ago

Execution failed for task ':app:kaptDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution java.lang.reflect.InvocationTargetException (no error message)

pisce188 commented 2 years ago

我也遇到这个问题,兄弟你解决了吗

imistyrain commented 2 years ago

在app的build.gradle文件下的dependencies {} 块里添加:

// Add missing dependencies for JDK 9+
if (JavaVersion.current().ordinal() >= JavaVersion.VERSION_1_9.ordinal()) {
    // Add both if you're using both Kotlin and Java

    // If you're using Kotlin
    kapt "com.sun.xml.bind:jaxb-core:2.3.0.1"
    kapt "javax.xml.bind:jaxb-api:2.3.1"
    kapt "com.sun.xml.bind:jaxb-impl:2.3.2"

    // If you're using Java
    annotationProcessor "com.sun.xml.bind:jaxb-core:2.3.0.1"
    annotationProcessor "javax.xml.bind:jaxb-api:2.3.1"
}