3 Replies Latest reply on Jul 21, 2017 3:26 AM by Pietro Francesco Maggi

    Unhandled exception launching BarcodeSample1 on my MC32N0

    Miquel Ferrer

      I have installed the EMDK extension for xamarin and downloaded the Barcode Sample solution.

       

      The first thing I had to modify for the app to launch was changing this line in the manifest

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

      to this

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

       

      But now i have a strange unhandled exception when trying to launch the sample app (no code changed whatsoever, just opened and launched)

       

      InspectorDebugSession(2): HandleTargetEvent: ThreadStarted

      InspectorDebugSession(2): StateChange: BreakdanceInvoking -> BreakdanceStarted

      06-13 09:44:44.760 D/Mono    ( 3579): DllImport searching in: '__Internal' ('(null)').

      06-13 09:44:44.760 D/Mono    ( 3579): Searching for 'java_interop_jnienv_call_static_void_method_a'.

      06-13 09:44:44.760 D/Mono    ( 3579): Probing 'java_interop_jnienv_call_static_void_method_a'.

      06-13 09:44:44.760 D/Mono    ( 3579): Found as 'java_interop_jnienv_call_static_void_method_a'.

      06-13 09:44:44.767 D/Mono    ( 3579): Assembly Ref addref Symbol.XamarinEMDK[0x4ed582f8] -> mscorlib[0x513661b8]: 13

      06-13 09:44:44.767 D/Mono    ( 3579): Assembly Ref addref Symbol.XamarinEMDK[0x4ed582f8] -> Mono.Android[0x51b6d980]: 3

      06-13 09:44:44.775 I/dalvikvm( 3579): Failed resolving Lmd5b5a2873b3a6bebca77defeb1514ac08a/MainActivity; interface 271 'Lcom/symbol/emdk/EMDKManager$EMDKListener;'

      06-13 09:44:44.775 W/dalvikvm( 3579): Link of class 'Lmd5b5a2873b3a6bebca77defeb1514ac08a/MainActivity;' failed

      06-13 09:44:44.775 D/AndroidRuntime( 3579): Shutting down VM

      06-13 09:44:44.775 W/dalvikvm( 3579): threadid=1: thread exiting with uncaught exception (group=0x41211300)

      InspectorDebugSession(2): HandleTargetEvent: UnhandledException

      An unhandled exception occured.

       

      I have tried installing an older version of the emdk extension (2.1 instead of 2.4) but without luck

       

      Any clue?

       

      Thanks!!

       

      EDIT: I've tried to update the EMDK device runtime using EMDKOSUpdateApp V6.4 but an error occurs ("Error: The EMDK update is not supported on this device")