android - Google Vision barcode library not found -


i'm trying use new feature in google play services (vision) add qr code scanning application. when run app this:

i/vision﹕ supported abis: [armeabi-v7a, armeabi] d/vision﹕ library not found: /data/data/com.google.android.gms/files/com.google.android.gms.vision/barcode/libs/armeabi-v7a/libbarhopper.so i/vision﹕ requesting barcode detector download. 

i have declared barcode dependency per tutorial:

<meta-data     android:name="com.google.android.gms.vision.dependencies"     android:value="barcode" /> 

i tried reinstalling app , restarting phone, nothing helps.

using google play services 7.8, version installed on device 7.8.11.

compile 'com.google.android.gms:play-services-vision:7.8.0' 

code used creating barcode detector:

boolean initbarcodedetector() {     final barcodetrackerfactory barcodetrackerfactory = new barcodetrackerfactory(this);     final multiprocessor<barcode> multiprocessor = new multiprocessor.builder<>(barcodetrackerfactory)             .build();     barcodedetector = new barcodedetector.builder(this)             .build();     barcodedetector.setprocessor(multiprocessor);      if (barcodedetector.isoperational() == false) {         toast.maketext(this, r.string.barcode_not_operational, toast.length_long).show();         finish();         return false;     }      return true; } 

the above close returns false , finishes activity because barcodedetector.isoperational() returns false.

google has confirmed bug fix soon, prevents in cases use library of barcode/face-detection (link here) :

  • a service required mobile vision disabled due serious bug in service. prevent users have not used face or barcode detection using features. not recommend adding new mobile vision features app until issue fixed.
  • for apps use mobile vision features, check facedetector.isoperational() or barcodedetector.isoperational() confirm detector readiness before using face or barcode detector.

it's written in issues reported on google's github sample repo:

https://github.com/googlesamples/android-vision/issues

example (here) :

there known issue new version of gmscore (v9) released today.


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -