1 Reply Latest reply on Jun 26, 2018 10:40 AM by Elias Tong

    Xamarin EMDK ClassNotFoundException EMDKListener

    Elias Tong

      Hi everyone,

       

      Im trying to integrate the Xamarin EMDK into my Xamarin Forms project. I've followed the instructions to for installing the Nuget package here and the project builds but when I actually try to run it I get the error below when I try to initialize the EMDKManager. Anybody have any idea on what I could be doing wrong?

       

      [art] Caused by: java.lang.ClassNotFoundException: Didn't find class "com.symbol.emdk.EMDKManager$EMDKListener" on path: DexPathList[[zip file "/data/app/…./base.apk"],nativeLibraryDirectories=[/data/app/…./lib/x86, /data/app/…../base.apk!/lib/x86, /system/lib, /vendor/lib]]

      [art]   at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)

      [art]   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)

      [art]   at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)

      [art]   at void md58432a647068b097f9637064b8985a5e0.ButtonRenderer_ButtonClickListener.n_onClick(android.view.View) (ButtonRenderer_ButtonClickListener.java:-2)

      [art]   at void md58432a647068b097f9637064b8985a5e0.ButtonRenderer_ButtonClickListener.onClick(android.view.View) (ButtonRenderer_ButtonClickListener.java:30)

      [art]   at boolean android.view.View.performClick() (View.java:5610)

      [art]   at void android.view.View$PerformClick.run() (View.java:22265)

      [art]   at void android.os.Handler.handleCallback(android.os.Message) (Handler.java:751)

      [art]   at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:95)

      [art]   at void android.os.Looper.loop() (Looper.java:154)

      [art]   at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6077)

      [art]   at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)

      [art]   at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:865)

      [art]   at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:755)