简体   繁体   中英

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!

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

download official library documentation

ZEBRA > LINK-OS MULTIPLATFORM SDK DOWNLOADS & SUPPORT

here all library for all platforms include ZSDK_ANDROID_API.jar

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM