Не найден приемлемый модуль TextRecognizer - PullRequest
0 голосов
/ 28 февраля 2019

мы используем приложение google-vision для некоторых устройств, я получил исключение:

E/TextNativeHandle: Error Loading module
com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
    at com.google.android.gms.dynamite.DynamiteModule.load(Unknown Source:8)
    at com.google.android.gms.internal.vision.zzm.zzq(Unknown Source:28)
    at com.google.android.gms.internal.vision.zzm.isOperational(Unknown Source:9)
    at com.google.android.gms.vision.text.TextRecognizer.isOperational(Unknown Source:56)
    at com.google.android.gms.vision.Detector.receiveFrame(Unknown Source:12)
    at com.wandio.dealerapp.camera.CameraSource$FrameProcessingRunnable.run(CameraSource.java:811)
    at java.lang.Thread.run(Thread.java:764)

вот наши градусы сборки:

apply plugin: 'com.android.application'

применить плагин: 'kotlin-android'

применить плагин: 'kotlin-android-extensions' ....

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'org.jetbrains.anko:anko-common:0.9'
    implementation 'com.squareup.retrofit2:retrofit:2.4.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.11.0'
    implementation 'com.google.firebase:firebase-core:16.0.7'
    implementation 'com.google.firebase:firebase-crash:16.2.1'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.google.android.gms:play-services-vision:17.0.2'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:exifinterface:27.1.1'
    implementation 'com.budiyev.android:circular-progress-bar:1.0.9'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: 'com.google.gms.google-services'

и Gradle сборки уровня проекта:

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {ext.kotlin_version = '1.3.21 '

repositories {
    google()
    jcenter()
    mavenCentral()
    maven {
        url 'https://maven.fabric.io/public'
    }
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.3.1'
    classpath 'io.fabric.tools:gradle:1.27.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms:google-services:4.2.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

все проекты {репозитории {google () jcenter () maven {url' https://maven.google.com/'}}}

taskclean (тип: Delete) {удалить rootProject.buildDir}

...