拒绝com.google.android.gms.internal.zzasm类,因为编译时验证失败

时间:2017-11-23 12:02:42

标签: java android facebook account-kit

我在整合Facebook帐户套件进行移动验证时收到此错误

  

流程:com.mobilefirst.pausepay,PID:26532                                                                             java.lang.VerifyError:拒绝类   com.google.android.gms.internal.zzasm因为编译时失败了   验证(com.google.android.gms.internal.zzasm'   出现在/data/app/com.mobilefirst.pausepay-2/base.apk)                                                                                 在com.google.android.gms.auth.api.Auth。(未知来源)                                                                                 在   com.facebook.accountkit.ui.AccountKitActivity.onCreate(AccountKitActivity.java:348)                                                                                 在android.app.Activity.performCreate(Activity.java:6092)                                                                                 在   android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1112)                                                                                 在   android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2514)                                                                                 在   android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2641)                                                                                 在android.app.ActivityThread.access $ 800(ActivityThread.java:182)                                                                                 在   android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1515)                                                                                 在android.os.Handler.dispatchMessage(Handler.java:111)                                                                                 在android.os.Looper.loop(Looper.java:194)                                                                                 在android.app.ActivityThread.main(ActivityThread.java:5717)                                                                                 at java.lang.reflect.Method.invoke(Native Method)                                                                                 在java.lang.reflect.Method.invoke(Method.java:372)                                                                                 在   com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:959)                                                                                 在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)

1 个答案:

答案 0 :(得分:0)

找到解决方案。只需在gradle文件中添加以下行: -

 compile ('com.facebook.android:facebook-android-sdk:4.+'){
    exclude group: 'com.google.android.gms'
}
compile ('com.facebook.android:account-kit-sdk:4.+'){
    exclude group: 'com.google.android.gms'
}

 compile "com.google.android.gms:play-services-auth-api-phone:+"
 compile 'com.google.android.gms:play-services-auth:+