NullPointerException while building the app

J Julian Schmidl 3 years ago
81 1 0

Hi,
 
I'm trying to build an app with the EMDK included.
 
During the build process I get the following error:
 
Skip com.symbol.emdk.simulscan.SimulScanConfig
        Error: java.lang.NullPointerException
Skip com.symbol.emdk.simulscan.SimulScanManager
        Error: java.lang.NullPointerException
Skip com.symbol.emdk.simulscan.SimulScanMultiTemplate
        Error: java.lang.NullPointerException
Skip com.symbol.emdk.simulscan.SimulScanReader
        Error: java.lang.NullPointerException
Skip com.symbol.emdk.simulscan.SimulScanReaderInfo
        Error: java.lang.NullPointerException
 
The app is launching, however it's crashing fi I try to get the barcode manager
barcodeManager = (BarcodeManager) this.emdkManager   .getInstance(EMDKManager.FEATURE_TYPE.BARCODE);
 
 
It seems that there are some issues with the provided EMDK (I included the com.symbol.emdk.jar in my package).
 
Can anyone help me with that?
 
Thank you very much.
 
Best regards,
Julian

Please register or login to post a reply

1 Replies

V Vedsatx Saddvv

Hi,

I suggest you take a look at the barcode sample application here: GitHub - Zebra/samples-emdkforandroid-6_4 at BarcodeSample1  Note you do not need to explicitly include the emdk.jar package: samples-emdkforandroid-6_4/build.gradle at BarcodeSample1 · Zebra/samples-emdkforandroid-6_4 · GitHub , instead the sample app uses a compileSdkVersion.

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