It is recommended that developers obtain the Barcode SDK via Maven. Simply make this addition to your project build.gradle to define the Vuzix repository.


allprojects {
repositories {
// The speech SDK is currently hosted by jitpack
maven { url "" }

Then add a dependency to the Barcode SDK library in your application build.gradle


dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.vuzix:sdk-barcode:1.6'

Proguard Rules

If you are using Proguard you will need to prevent obfuscating the Vuzix Barcode SDK. Failure to do so will result in calls to the SDK raising the RuntimeException "Stub!". Add the following -keep statement to the proguard rules file, typically named


-keep class com.vuzix.sdk.barcode.** { *; }

The R8 Optimization may omit arguments required by the SDK methods, resulting in the NullPointerException "throw with null exception" being raised. The current workaround is to disable R8 and use Proguard to do the shrinking and obfuscation. Add the following to your to change from R8 to Proguard.



Did this answer your question?