RuntimeException: stub - EMDKManager.getEMDKManager(Unknown Source)

Hey, I just started code an Android app to connect to the MZ-220 printer via Bluetooth and I got this error

java.lang.RuntimeException: stub

                                                                                     at com.symbol.emdk.EMDKManager.getEMDKManager(Unknown Source)

                                                                                     at com.symbol.devtalks_scanandpair.Main2Activity.start(

                                                                                     at com.symbol.devtalks_scanandpair.Main2Activity$1.onClick(

                                                                                     at android.view.View.performClick(

                                                                                     at android.view.View$

                                                                                     at android.os.Handler.handleCallback(

                                                                                     at android.os.Handler.dispatchMessage(

                                                                                     at android.os.Looper.loop(


                                                                                     at java.lang.reflect.Method.invokeNative(Native Method)

                                                                                     at java.lang.reflect.Method.invoke(



                                                                                     at dalvik.system.NativeStart.main(Native Method)

I tried very ways but still didn't work

- compile project(':com.symbol.emdk')     :RuntimeException: stub

- compileSdkVersion 'Symbol Technologies LLC:EMDK APIs:23'    :Didn't find class "com.symbol.emdk.EMDKManager$EMDKListener" on path: DexPathList[[zip file "/data/app/com.symbol.scanandpairsample1-1/base.apk"],nativeLibraryDirectories=[/data/app/com.symbol.scanandpairsample1-1/lib/arm64, /system/lib64, /vendor/lib64]

- <uses-library android:name="com.symbol.emdk"/>     :NSTALL_FAILED_MISSING_SHARED_LIBRARY


Currently, I am using the latest Android version and EMDK 6.4

Hope someone knows this.

Bhakta Ranjan S...
Hello Dang,I hope you have

Hello Dang,

I hope you have added dependency to your build.gradle.

dependencies {

provided fileTree(include: ['com.symbol.emdk.jar'], dir: 'C:\\Users\\<YOUR USER NAME>\\AppData\\Local\\Android\\sdk\\add-ons\\addon-symbol-emdk_v4.0_API-19\\libs')

compile fileTree(exclude: ['com.symbol.emdk.jar'], dir: 'libs')


Please find the details @Creating Project using Android Studio - Zebra Technologies Techdocs

And you have mentioned below in your android_manifest.xml.

<uses-permission android:name="com.symbol.emdk.permission.EMDK" />

Then you must enable the EMDK library in your application node:

<uses-library android:name="com.symbol.emdk" />


Vote up!
Vote down!

Points: 0

You voted ‘up’

Log in to post comments