Run Grade assembleRelease task to build common-release.aar
In Android app project, create directory libs under directory app.
Add libuvccamera-release.aar, usbCameraCommon-release.aar and common-release.aar to libs.
In build.gradel, add the following to dependences: implementation files('libs/androidLibrary-release.aar') implementation files('libs/common-release.aar') implementation files('libs/libuvccamera-release.aar') implementation files('libs/usbCameraCommon-release.aar') implementation files('libs/ZistosUSBCamera-release.aar')
Add the following to the activity using USB camera in AndroidManifest.xml: <intent-filter>
<!-- for USB devices --> <action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" /> </intent-filter>