com.google.android.gms.vision.barcode does not work on the MAVIC 3 ENTERPRISE DJI RC Controller
CompletedI'm trying to use the com.google.android.gms:play-services-vision:20.1.3 library in the customized app, but from what I've seen the control doesn't even have Google Play Store, do you know how I can use it?
This is an excerpt of the error:
E/DynamiteModule: Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.barcode not found.
I/DynamiteModule: Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
E/Vision: Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
W/BarcodeNativeHandle: Native handle not yet available. Reverting to no-op handle.
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
E/DynamiteModule: Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
E/DynamiteModule: Failed to load IDynamiteLoader from GmsCore: Application package com.google.android.gms not found
W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.barcode not found.
I/DynamiteModule: Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:0
E/Vision: Error loading optional module com.google.android.gms.vision.barcode: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
And it returns the error in this if line:
public static String readQRCode(Bitmap image, Context context){
long initialTime = System.currentTimeMillis();
String textQR = "";
try{
BarcodeDetector detector = new BarcodeDetector.Builder(context)
.setBarcodeFormats(Barcode.DATA_MATRIX | Barcode.QR_CODE)
.build();
if (!detector.isOperational()) {
log.error("readQRCode - Detector initialization failed.");
return "Detector initialization failed";
}
-
I want to use their Barcode reader, it's the Barcode reader that worked best for my project, but it requires Google Play Services. In an attempt to replace it, I used ZXing which works perfectly well for QRCode, but for DataMatrix it is terrible, as it always needs to be centered in the image and in very good quality. I would like to know if you know of any other alternative. I need to read QRCode and DataMatrix well. Thanks in advance.
Please sign in to leave a comment.
Comments
3 comments