javaandroidsdkzebra-printers

can't build link-os sdk for android demo code


I'm following the instructions on loading the demo code for the link-os SDK here https://techdocs.zebra.com/link-os/2-14/android/ and it seems like it should be very simple, but upon trying to build it in android studio it tells me

Unsupported Gradle. 
The project uses Gradle 2.14.1 which is incompatible with Android Studio 2022.3.

Possible solution:
 - Upgrade Gradle wrapper to 3.0 version and re-import the project

when clicking on the upgrade gradle wrapper it'll change all of the dependencies, but then once that's done I get

Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

I've also tried running this in eclipse but it'll immediately give me the second error. Does anyone know the proper way to load all of this and set it up?


Solution

  • Please use the ZSDK_DevDemos_Combined, which was updated for Gradle v4.2.2 for Android Studio last year.

    After open the ZSDK_DevDemos_Combined in Android Studio, click on the "Sync Project with Gradle Files" button first before start building the project.