部分三星J系列手机&华为手机运行Android 7.0 或更高版本在打开我的应用程序时遇到应用程序崩溃。当我在Google Play日志中查看时,我发现了以下日志。请有人告诉我如何解决这个问题?应用程序在发布时崩溃。
我正在使用Eclipse与Google Play服务& App Compat v7库。
以下是来自Google Play控制台的日志:
java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2984)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3045)
at android.app.ActivityThread.-wrap14 (ActivityThread.java)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1642)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6776)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1518)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by: java.lang.SecurityException:
at android.app.ContextImpl.checkMode (ContextImpl.java:2369)
at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:383)
at android.app.ContextImpl.getSharedPreferences (ContextImpl.java:378)
at com.google.android.gms.internal.zzbw.zzv (Unknown Source)
at com.google.android.gms.internal.zzbx.zzw (Unknown Source)
at com.google.android.gms.internal.zzby.zzw (Unknown Source)
at com.google.android.gms.ads.internal.zzq.<init> (Unknown Source)
at com.google.android.gms.ads.internal.zzq.<init> (Unknown Source)
at com.google.android.gms.ads.internal.zzb.<init> (Unknown Source)
at com.google.android.gms.ads.internal.zzc.<init> (Unknown Source)
at com.google.android.gms.ads.internal.zzf.<init> (Unknown Source)
at com.google.android.gms.ads.internal.client.zze.zza (Unknown Source)
at com.google.android.gms.ads.internal.client.zzy.zzcT (Unknown Source)
at com.google.android.gms.ads.internal.client.zzy.zzcS (Unknown Source)
at com.google.android.gms.ads.internal.client.zzy.zza (Unknown Source)
at com.google.android.gms.ads.AdView.loadAd (Unknown Source)
at app.test.ActivityMain.onCreate (ActivityMain.java:112)
at android.app.Activity.performCreate (Activity.java:6956)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1126)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2927)
答案 0 :(得分:1)
自5月1日以来,我在我的APP中遇到了同样的问题。看起来这个问题是由针对此设备的新版Google Play服务引起的。
//修改
问题trakcer:https://issuetracker.google.com/issues/79405933 第三次溶解仅在下次重启之前有效......
答案 1 :(得分:0)
我现在发现的唯一解决方案是清除所有Google Play服务的数据,但一旦用户重启他的手机......它再次崩溃了我的应用程序&amp;用户必须清除所有Google Play服务的数据。我想要永久解决这个问题。