1 Reply Latest reply on Jul 1, 2015 6:37 PM by Robert Galvin

    IllegalAccessError when try getEMDKManager

    Uliana Akopyan

      Hello! Unable to run the test application «ProfileAppMgrSample1» of Sample EMDK 3.1.

      When called

      EMDKResults results = EMDKManager.getEMDKManager (getApplicationContext (), this);
      

      get error:

      Class resolved by unexpected DEX: Lcom/symbol/profiledatacapturesample1/MainActivity0x41582ac8):0x5a0bf000 ref [Lcom/symbol/emdk/EMDKManager$EMDKListener;] Lcom/symbol/emdk/EMDKManager$EMDKListener0x41582ac8):0x5a0b6000
      (Lcom/symbol/profiledatacapturesample1/MainActivity; had used a different Lcom/symbol/emdk/EMDKManager$EMDKListener; during pre-verification)
      W/dalvikvm(2612): Link of class 'Lcom/symbol/profiledatacapturesample1/MainActivity;' failed
      W/dalvikvm(2612): threadid=1: thread exiting with uncaught exception (group=0x40c00438)
      E/AndroidRuntime(2612): FATAL EXCEPTION: main
      E/AndroidRuntime(2612): java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
      E/AndroidRuntime(2612):  at dalvik.system.DexFile.defineClass(Native Method)
      

      In Manifest:

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

      And

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

       

       

      I tried to first write my application, but the result is the same mistake. The development environment Eclipse. Can you help solve this problem?