Skip to content

BarcodeDetector not operational #154

Open
@jehy

Description

@jehy

I have enabled google play services 10.0.84 (I check that it is available in application code) on Philips W3568 with Android 4.2.2 and BarcodeDetector can not initialize. On other phones everything is okay.

Here is my gradle:

dependencies {
    compile "com.android.support:support-v4:25.0.1"
    compile 'com.android.support:appcompat-v7:25.0.1'
    compile 'com.google.android.gms:play-services-vision:10.0.0'//for QR codes

Here is my code:

        detector =
                new BarcodeDetector.Builder(getApplicationContext())
                        .setBarcodeFormats(Barcode.DATA_MATRIX | Barcode.QR_CODE)
                        .build();
        while (!detector.isOperational()) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

In my application section of manifest I have


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

Device has free space and is connected to network.

Here is my log (it loops):

11-22 19:05:38.807 1628-1628/ru.payme.AlphaInsurance W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.
11-22 19:05:38.812 1628-1628/ru.payme.AlphaInsurance I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite:0 and remote module com.google.android.gms.vision.dynamite:801
11-22 19:05:38.813 1628-1628/ru.payme.AlphaInsurance I/DynamiteModule: Selected remote version of com.google.android.gms.vision.dynamite, version >= 801
11-22 19:05:38.816 1628-1628/ru.payme.AlphaInsurance W/BarcodeNativeHandle: Native handle not yet available. Reverting to no-op handle.
11-22 19:05:38.817 1628-1628/ru.payme.AlphaInsurance W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions