2017-06-02 153 views
1

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

错误消息

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) 

应用级摇篮

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 
} 
+0

我soved我的问题,现在的应用程序不会崩溃时从下载应用商店。 –

+0

解决方法是,在manifest 中添加权限 –

回答

0

看看这个multidex mutidex 并添加此LIB太

使用火力地堡库的10.0.1版时,您必须使用版本1.0.1火力地堡的用户界面:

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

火力UI Firebase UI