Gradle compiles provided jar files

DevOpsDevOps Tools

MOTOSHARE 🚗🏍️
Turning Idle Vehicles into Shared Rides & Earnings

From Idle to Income. From Parked to Purpose.
Earn by Sharing, Ride by Renting.
Where Owners Earn, Riders Move.
Owners Earn. Riders Move. Motoshare Connects.

With Motoshare, every parked vehicle finds a purpose. Owners earn. Renters ride.
🚀 Everyone wins.

Start Your Journey with Motoshare

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.

 

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x