android库中的“ NoClassDefFoundError”

时间:2019-11-06 12:13:48

标签: android

我已经使用'com.google.android.gms:play-services-vision:11.0.4'库开发了QR扫描仪库,并推送到maven并在新应用中实现了QR扫描仪库,我在其中调用了活动QR扫描仪库。在该应用程序应用程序运行时崩溃。

以下是日志

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.autonom8.aceapp, PID: 10555
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/vision/barcode/BarcodeDetector$Builder;
        at com.a8.qrcodereader.QrCodeScannerActivity.createCameraSource(QrCodeScannerActivity.java:96)
        at com.a8.qrcodereader.QrCodeScannerActivity.onCreate(QrCodeScannerActivity.java:59)
        at android.app.Activity.performCreate(Activity.java:7149)
        at android.app.Activity.performCreate(Activity.java:7140)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1288)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3027)

最适合我的

如果我实现了com.google.android.gms:play-services-vision:11.0.4以应用正常,则可以使用。

**是否有必要在app和sdk(qrscanner)中添加库(vision:11)

0 个答案:

没有答案