IllegalAccessError: tried to access method com.symbol.emdk.barcode.Scanner.release

We use the deInitScanner() on the onPause function to release scannner according to BarcodeSample1

My application use emdk3.1,when used on my device(TC700H),it works. when used on customer's device(TC700H) it crashes

down itself when onPause() called on BaseActivity.

 

if i remove the scanner release code,it works on customer's TC70 very vell. i wonder how the application crashes down itself.

 

my device information shows below.

Model number:TC700H

Android version:4.4.3

kernel version:3.4.0

Build numner:01-23257-K-G-18-03-00 MV release-keys

 

customer information shows below.

Model number:TC700H

Android version:4.4.2

kernel version:3.4.0-g1be0e9e-00545-g96dd240

Build numne:01-23245-K-00-00-00-G1-112414 release-keys !

 

code and attach shows below

if (scanner != null) {

            try {

                scanner.cancelRead();

                scanner.disable();

            } catch (ScannerException e) {

                Log.e("Error", e.getMessage());

            }

            scanner.removeDataListener(this);

            try {

                scanner.release();

            }

            catch (Exception e) {

                Log.e("Error", e.getMessage());

            }

            scanner = null;

        }