找不到可接受的模块TextRecognizer

时间:2019-02-28 10:50:02

标签: android kotlin google-play-services vision

我们在某些例外的设备上使用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
}

}

allprojects {     储存库{         谷歌()         jcenter()         专家{             网址'https://maven.google.com/'         }     } }

任务清理(类型:删除){     删除rootProject.buildDir }

0 个答案:

没有答案