Android java.lang.IllegalAccessError

时间:2019-11-05 12:12:30

标签: java android

我遇到以下问题:我目前正在编写Android Scan软件。因此,我想为Scanner(Datalogic)实现SDK。当我实现最早的版本(1.12)时,应用程序不会崩溃,但是当我为设备实现最新的版本(1.17)时,应用程序崩溃并显示:

  

原因:java.lang.IllegalAccessError:预验证类中的类ref被解析为意外实现

我已经完成了此处说明的每个步骤:https://datalogic.github.io/android/overview(Maven依赖项)

当我尝试获取BarcodeManager Class的实例时,似乎App崩溃了。但是以某种方式不能使用1.12 SDK。

这是我的build.gradle(App)依赖项:

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'com.github.datalogic:datalogic-android-sdk:1.17'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

这是我的build.gradle(项目):

allprojects {
    repositories {
        google()
        jcenter()
        maven {url "https://jitpack.io" }
    }
}

0 个答案:

没有答案