Gradle compiles provided jar files

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

Read more