Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but wonβt spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
Source β discourse.nativescript.org
The Zebra EMDK provides itβs own Android SDK, therefore I have to add an external lib to my plugin.
I put the necessary jar file into the libs folder of my plugin (/libs/com.symbol.emdk.jar) and added the dependencies to my include.gradle file
dependencies {
provided files('libs/com.symbol.emdk.jar')
compile fileTree(exclude: ['libs/com.symbol.emdk.jar'],include: ['*.jar'], dir: 'libs')
}
On tns run android it seems that the jar file gets compiled. I see the following errors in the log file:
:buildMetadata
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
Due to the missing/skipped classes the app crashes if I want to use the external lib.