I'm getting this error "Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected imple...

// Expert user has replied.
R Ryan Sabarre 3 years 7 months ago
7 1 0

I'm not sure why after the code below (in red) is executed it raised an error .
1.Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
 
EMDKResults results = EMDKManager.getEMDKManager(mContext, new Motorola());
 
    public class Motorola implements EMDKManager.EMDKListener {
        private String profileName = "DataCaptureProfile";
        private ProfileManager mProfileManager = null;
        private EMDKManager emdkManager = null;
 
 
        @Override
        public void onOpened(EMDKManager emdkManager) {
 
 
        }
 
        @Override
        public void onClosed() {
 
 
        }
    }

Please Register or Login to post a reply

1 Replies

P Pietro Francesco Maggi

Which EMDK version are you using and on which device/BSP?

Have you followed the steps included in the EMDK tutorial:

If you've forgotten to include the EMDK permission in the AndroidManifest.xml, you can see the behaviour you're experiencing.

~Pietro

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