-
Re: I'm getting this error "Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation"
Pietro Francesco MaggiApr 22, 2015 9:05 AM (in response to Ryan Sabarre)
Which EMDK version are you using and on which device/BSP?
Have you followed the steps included in the EMDK tutorial:
Data Capture Profile Feature Tutorial
If you've forgotten to include the EMDK permission in the AndroidManifest.xml, you can see the behaviour you're experiencing.
~Pietro
-
Re: I'm getting this error "Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation"
Ryan Sabarre Apr 22, 2015 2:54 PM (in response to Pietro Francesco Maggi)Hello Pietro,
Thank you for the reply.
We are using Android Studio. We fixed the issue yesterday by adding this in the gradle.
dependencies {
compile fileTree(dir: 'libs', include: , exclude: )
provided files('./libs/com.symbol.emdk.jar')
}
Best regards,
Ryan Sabarre | Senior Developer
Postal Address: PO Box 7069, Melbourne 3004, Victoria, Australia | Office Location: Level 1, 468 St Kilda Road, Melbourne 3004, Victoria, Australia | (P) 03 8842 2029 (M) 04 1482 0648
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
Description: cid:image001.jpg@01CB9DF2.99D487C0
P Please consider the environment before printing this e-mail
-
image001.png 16.1 K
-
Re: Re: I'm getting this error "Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation"
Pietro Francesco MaggiApr 23, 2015 3:05 AM (in response to Ryan Sabarre)
Hi Ryan,
so you hidden an important piece of information, that you're using Android Studio!
To compile with Android Studio at this moment I use this code in my build.gradle:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar'], exclude: ['com.symbol.emdk.jar']) compile 'com.android.support:appcompat-v7:21.0.3' provided files('./libs/com.symbol.emdk.jar') }
having the jar file in the libs folder.
BTW, we're planning to release v3.1 of the EMDK before end of May with native support for Android Studio on Windows and on OS X. This will simplify working on the XML profile.
~Pietro
-
Re: Re: I'm getting this error "Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation"
Ryan Sabarre Apr 23, 2015 2:48 PM (in response to Pietro Francesco Maggi)Thanks a lot Pietro. I really appreciate your fast response.
-
-
-