I tried to use the API ZSDK_ANDROID_API.jar on Netbeans to print on zebra Mz320 and It worked fine.
Now I started working with Android studio and It gives me the error of deprecated for the interface.
I tried to use the last Api version ,"zsdk-api-2.14.5198.jar" but It's the same.
Can someone help me.
Thanks in advanced
4 Replies
Normally deprecated function calls only result in compile warnings, not errors. I have the ZSDK_ANDROID_API.jar v2.14.5198 running in a project in Android Studio on MacBook. It has no issues. Can you share the compile error msg?
I show you the library I use in my program:
And this is the error:
You can see how class ZebraPrinter is deprecated.
For the import statements, try using the following, instead of the com.zebra.android, which is not correct.
It's working.
Thanks.