Android java.lang.VerifyError

时间:2016-02-25 03:21:31

标签: java android fatal-error verifyerror

我正在尝试在运行4.4.2的Android设备上启动我的应用。 然而,每次我尝试运行时,都会出现以下错误:

02-24 22:23:30.421 18276-18276/? E/AndroidRuntime: FATAL EXCEPTION: main
                                                   Process: com.example.android.app, PID: 18276
                                                   java.lang.VerifyError: com/google/android/gms/measurement/internal/zzt
                                                       at com.google.android.gms.measurement.AppMeasurementContentProvider.onCreate(Unknown Source)
                                                       at android.content.ContentProvider.attachInfo(ContentProvider.java:1591)
                                                       at android.content.ContentProvider.attachInfo(ContentProvider.java:1562)
                                                       at android.app.ActivityThread.installProvider(ActivityThread.java:5118)
                                                       at android.app.ActivityThread.installContentProviders(ActivityThread.java:4713)
                                                       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4596)
                                                       at android.app.ActivityThread.access$1600(ActivityThread.java:169)
                                                       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
                                                       at android.os.Handler.dispatchMessage(Handler.java:102)
                                                       at android.os.Looper.loop(Looper.java:146)
                                                       at android.app.ActivityThread.main(ActivityThread.java:5487)
                                                       at java.lang.reflect.Method.invokeNative(Native Method)
                                                       at java.lang.reflect.Method.invoke(Method.java:515)
                                                       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
                                                       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
                                                       at dalvik.system.NativeStart.main(Native Method)

单击ContentProvider链接,指向下方,但不知道从哪里开始......

   public @Nullable AssetFileDescriptor openTypedAssetFile(@NonNull Uri uri,
            @NonNull String mimeTypeFilter, @Nullable Bundle opts) throws FileNotFoundException {
        if ("*/*".equals(mimeTypeFilter)) {
            // If they can take anything, the untyped open call is good enough.
            return openAssetFile(uri, "r");
        }
        String baseType = getType(uri);
        if (baseType != null && ClipDescription.compareMimeTypes(baseType, mimeTypeFilter)) {
            // Use old untyped open call if this provider has a type for this
            // URI and it matches the request.
            return openAssetFile(uri, "r");
        }
        throw new FileNotFoundException("Can't open " + uri + " as type " + mimeTypeFilter);
    }

我读过它可能与版本控制不同步有关。

build.gradle文件是:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "22.0.1" // 22.0.1

    defaultConfig {
        applicationId "com.example.android.app"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    packagingOptions {
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE-FIREBASE.txt'
        exclude 'META-INF/NOTICE'
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    compile 'com.google.android.gms:play-services:8.3.0'
    compile 'com.mcxiaoke.volley:library:1.0.+'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.code.gson:gson:2.6.1'
    compile 'com.android.support:support-v4:23.1.0'
    compile 'com.android.support:recyclerview-v7:23.1.0'
    compile 'com.firebase:firebase-client-android:2.5.2+'
}

我该如何缓解这个问题?

0 个答案:

没有答案