从Playstore下载时,应用程序崩溃了

时间:2017-06-02 04:09:16

标签: android

我的应用程序在谷歌游戏商店,没有问题,但从最近我安装后从Play商店下载我的应用程序,我打开它应用程序崩溃。我杀了应用程序并重新启动它。它运作正常。我不明白为什么第一次从Play商店安装应用程序时崩溃了。请提出任何建议并为此提供解决方案。非常感谢。

错误消息

    java.lang.NoSuchMethodError: 
      at com.google.android.gms.internal.zzati.zzoW(Unknown Source:0)
      at com.google.android.gms.internal.zzatx.<init>(Unknown Source:0)
      at com.google.android.gms.internal.zzaui.zzc(Unknown Source:0)
      at com.google.android.gms.internal.zzaue.<init>(Unknown Source:0)
      at com.google.android.gms.internal.zzaui.zzMO(Unknown Source:0)
      at com.google.android.gms.internal.zzaue.zzbM(Unknown Source:0)
      at com.google.android.gms.internal.zzaub.onReceive(Unknown Source:0)
      at com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver.onReceive(Unknown Source:0)
      at android.app.ActivityThread.handleReceiver(ActivityThread.java:3091)
      at android.app.ActivityThread.-wrap18(ActivityThread.java:0)
      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1588)
      at android.os.Handler.dispatchMessage(Handler.java:102)
      at android.os.Looper.loop(Looper.java:154)
      at android.app.ActivityThread.main(ActivityThread.java:6247)
      at java.lang.reflect.Method.invoke(Native Method:0)
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)

App Level Gradle

 apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "24.0.2"
    useLibrary 'org.apache.http.legacy'

    defaultConfig {
        vectorDrawables.useSupportLibrary = true
        applicationId "com.xxxxxxxx"
        minSdkVersion 15
        targetSdkVersion 24
        versionCode 20005
        versionName "2.0.5"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    maven { url "https://jitpack.io" }

}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'de.hdodenhof:circleimageview:2.1.0'
    compile 'com.mcxiaoke.volley:library-aar:1.0.0'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'org.lucasr.twowayview:twowayview:0.1.4'
    compile 'me.dm7.barcodescanner:zbar:1.9'
    compile 'com.google.firebase:firebase-messaging:10.2.0'
    compile 'io.intercom.android:intercom-sdk-base:3.+'
    compile 'io.intercom.android:intercom-sdk-fcm:3.+'
}
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 {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }

}

task clean(type: Delete) {
    delete rootProject.buildDir
}

1 个答案:

答案 0 :(得分:0)

查看此multidex mutidex  并添加此lib

使用Firebase库的10.0.1版时,必须使用Firebase用户界面的1.0.1版:

  compile 'com.firebaseui:firebase-ui:1.0.1'

firebase用户界面Firebase UI