如何修复“由于java.lang.Error而导致游戏崩溃:FATAL EXCEPTION”?

时间:2019-06-12 05:09:57

标签: android unity3d logging release crush

将游戏上传到Play商店后,我的游戏在显示java.lang.Error: FATAL EXCEPTION的设备上崩溃了,该游戏是在统一版本:2018.3.0f2 上开发的。

java.lang.Error: FATAL EXCEPTION [Thread-296]
Unity version     : 2018.3.0f2
Device model      : samsung SM-J600FN
Device fingerprint: samsung/j6ltexx/j6lte:9/PPR1.180610.011/J600FNXXU3BSD2:user/release-keys
Caused by
  at ly.b (com.google.android.gms.policy_ads_fdr_dynamite@20290003@20290003.249178941.249178941:2)
  at lx.a (com.google.android.gms.policy_ads_fdr_dynamite@20290003@20290003.249178941.249178941:1)
  at lz.a (com.google.android.gms.policy_ads_fdr_dynamite@20290003@20290003.249178941.249178941:29)
  at com.google.android.gms.ads.internal.util.aq.a (com.google.android.gms.policy_ads_fdr_dynamite@20290003@20290003.249178941.249178941:10)
  at lc.a (com.google.android.gms.policy_ads_fdr_dynamite@20290003@20290003.249178941.249178941:8)
  at lc.run (com.google.android.gms.policy_ads_fdr_dynamite@20290003@20290003.249178941.249178941:2)
Caused by: java.lang.ClassNotFoundException: 
  at dalvik.system.BaseDexClassLoader.findClass (BaseDexClassLoader.java:134)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:379)
  at ab.loadClass (com.google.android.gms.dynamite_dynamiteloader@17455079@17.4.55 (100306-248795830):4)
  at java.lang.ClassLoader.loadClass (ClassLoader.java:312)

AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.google.unity.ads"
    android:versionName="1.0"
    android:versionCode="1">
  <uses-sdk android:minSdkVersion="14"
      android:targetSdkVersion="19" />
  <application>

    <meta-data
    android:name="com.something.something"
    android:value="something"/>

    <activity 
    android:name="com.google.android.gms.ads.AdActivity"    
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

  </application>

  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.WAKE_LOCK" />
</manifest>

0 个答案:

没有答案