EMDK Crashing On MC18

O Oliver Hardman 11 months 2 weeks ago
53 1 0

Hi all, EMDK newbie here.

I have an MC18 running Lollipop. I am trying to use EMDK 6.9.16 (apparently the latest supported version for Android 5).

Have retrieved the EMDKManager and implemented the onOpened method which is being successfully called. However, when I try to get my PersonalShopper object, EMDK crashes. Here's the logcat:

 

--------- beginning of crash

E/AndroidRuntime( 3781): FATAL EXCEPTION: Binder_1

E/AndroidRuntime( 3781): Process: com.symbol.emdk.emdkservice, PID: 3781

E/AndroidRuntime( 3781): java.lang.NoSuchFieldError: No static field SCANNER_BLUETOOTH_RS5100 of type Lcom/symbol/scanning/Scanner$ScannerInfo$ScannerType; in class Lcom/symbol/scanning/Scanner$ScannerInfo$ScannerType; or its superclasses (declaration of 'com.symbol.scanning.Scanner$ScannerInfo$ScannerType' appears in /system/framework/com.symbol.scanner.jar)

E/AndroidRuntime( 3781):        at com.symbol.emdk.emdkservice.notification.SvcDeviceUtils.getSupportedDevices(SvcDeviceUtils.java:67)

E/AndroidRuntime( 3781):        at com.symbol.emdk.emdkservice.notification.SvcNotificationManager.<init>(SvcNotificationManager.java:38)

E/AndroidRuntime( 3781):        at com.symbol.emdk.emdkservice.SvcEMDKManager.nfnInitialize(SvcEMDKManager.java:1460)

E/AndroidRuntime( 3781):        at com.symbol.emdk.emdkservice.ProfileService.nfnInitialize(ProfileService.java:1061)

E/AndroidRuntime( 3781):        at com.symbol.emdk.emdkservice.IEMDKService$Stub.onTransact(IEMDKService.java:1955)

E/AndroidRuntime( 3781):        at android.os.Binder.execTransact(Binder.java:446)

W/ResourcesManager(  640): Asset path '/system/framework/com.symbol.scanner.jar' does not exist or contains no resources.

W/ResourcesManager(  640): Asset path '/system/framework/com.symbol.diagnostic.jar' does not exist or contains no resources.

W/ResourcesManager(  640): Asset path '/system/framework/com.symbol.cradle.jar' does not exist or contains no resources.

 

The code causing the crash is:

this.personalShopper = (PersonalShopper) this.emdkManager.getInstance(EMDKManager.FEATURE_TYPE.PERSONALSHOPPER);

 

Any ideas why this is happening? This is a freshly wiped MC18 with the latest OS package.

Also, does anyone know where I can find the JARs for each EMDK release now that JCenter is gone?

 

Many thanks for any help!

Please Register or Login to post a reply

1 Replies

O Oliver Hardman

Just in case anyone stumbles across this: it was because I was using "implementation" in my build.gradle instead of "compileOnly!"

CONTACT
Can’t find what you’re looking for?