Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import zebra package in android studio?

I tried to import this packages:

import com.zebra.sdk.comm.ConnectionException;
import com.zebra.sdk.printer.discovery.BluetoothDiscoverer;
import com.zebra.sdk.printer.discovery.DiscoveredPrinter;
import com.zebra.sdk.printer.discovery.DiscoveredPrinterBluetooth;
import com.zebra.sdk.printer.discovery.DiscoveryHandler;

But gives me an error that it cannot find them. Any help please? Thanks in advance!

like image 254
Pakz Avatar asked Oct 24 '25 11:10

Pakz


1 Answers

you need to add dependency of zebra sdk follow below steps

  1. Download this jar file https://github.com/luisamilcarr/zebra_zq510/raw/master/app/libs/ZSDK_ANDROID_API.jar
  2. Cut and copy this jar file from download folder to android libs folder
  3. In build.gradle folder, add below line in dependencies section
implementation files('libs/ZSDK_ANDROID_API.jar')
  1. sync the project That's all

Hint: Main source https://github.com/luisamilcarr/zebra_zq510

like image 162
kam1234 Avatar answered Oct 26 '25 01:10

kam1234



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!