I've integrated facebook sdk and firebase sdk for auth,database,analytics and remote config in my app.
The app crashes during the remote config fetch according to what I see in my app but therer's no log.
Here's the log: 01-11 13:15:24.003 30673 32101 E Unity : Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 01-11 13:15:26.061 1360 1424 I ActivityManager: Start proc 32189:com.android.settings/1000 for broadcast com.android.settings/.MiuiSettingsReceiver 01-11 13:15:26.084 30673 32101 I Unity : Firebase App initializing app in.hashstash.battleship (default 1). 01-11 13:15:26.084 30673 32101 I Unity : 01-11 13:15:26.084 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.084 30673 32101 I Unity : 01-11 13:15:26.116 30673 32101 I Unity : Firebase Analytics API Initializing 01-11 13:15:26.116 30673 32101 I Unity : 01-11 13:15:26.116 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.116 30673 32101 I Unity : 01-11 13:15:26.126 30673 32101 I Unity : Firebase Analytics API Initialized 01-11 13:15:26.126 30673 32101 I Unity : 01-11 13:15:26.126 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.126 30673 32101 I Unity : 01-11 13:15:26.260 30673 32101 I Unity : Remote Config API Initialized 01-11 13:15:26.260 30673 32101 I Unity : 01-11 13:15:26.260 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.260 30673 32101 I Unity : 01-11 13:15:27.668 30673 32101 I Unity : Enabling data collection. 01-11 13:15:27.668 30673 32101 I Unity : 01-11 13:15:27.668 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:27.668 30673 32101 I Unity : 01-11 13:15:28.755 30673 32101 I Unity : RemoteConfig configured and ready! 01-11 13:15:28.755 30673 32101 I Unity : 01-11 13:15:28.755 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:28.755 30673 32101 I Unity : 01-11 13:15:28.761 30673 32101 I Unity : Fetching data... 01-11 13:15:28.761 30673 32101 I Unity : 01-11 13:15:28.761 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:28.761 30673 32101 I Unity : 01-11 13:15:29.324 639 639 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-11 13:15:29.324 639 639 F DEBUG : Build fingerprint: 'Xiaomi/land/land:6.0.1/MMB29M/V8.5.4.0.MALMIED:user/release-keys' 01-11 13:15:29.324 639 639 F DEBUG : Revision: '0' 01-11 13:15:29.324 639 639 F DEBUG : ABI: 'arm' 01-11 13:15:29.324 639 639 F DEBUG : pid: 30673, tid: 32101, name: Thread-15516 >>> in.hashstash.battleship <<< 01-11 13:15:29.324 639 639 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 01-11 13:15:29.374 639 639 F DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/PendingResult;' 01-11 13:15:29.374 639 639 F DEBUG : r0 00000000 r1 00007d65 r2 00000006 r3 dab46978 01-11 13:15:29.374 639 639 F DEBUG : r4 dab46980 r5 dab46930 r6 0000000b r7 0000010c 01-11 13:15:29.374 639 639 F DEBUG : r8 ab5de160 r9 f5254378 sl 00000000 fp 00000000 01-11 13:15:29.374 639 639 F DEBUG : ip 00000006 sp dab45948 lr f72d9f5d pc f72dc358 cpsr 40070010 01-11 13:15:29.386 639 639 F DEBUG : 01-11 13:15:29.386 639 639 F DEBUG : backtrace: 01-11 13:15:29.386 639 639 F DEBUG : #00 pc 00044358 /system/lib/libc.so (tgkill+12) 01-11 13:15:29.386 639 639 F DEBUG : #01 pc 00041f59 /system/lib/libc.so (pthread_kill+32) 01-11 13:15:29.387 639 639 F DEBUG : #02 pc 0001ba6f /system/lib/libc.so (raise+10) 01-11 13:15:29.387 639 639 F DEBUG : #03 pc 00018c11 /system/lib/libc.so (__libc_android_abort+34) 01-11 13:15:29.387 639 639 F DEBUG : #04 pc 000167d0 /system/lib/libc.so (abort+4) 01-11 13:15:29.387 639 639 F DEBUG : #05 pc 00321035 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+212) 01-11 13:15:29.387 639 639 F DEBUG : #06 pc 000f3d7d /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2212) 01-11 13:15:29.387 639 639 F DEBUG : #07 pc 0024f877 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1526) 01-11 13:15:29.388 639 639 F DEBUG : #08 pc 0024fc17 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+54) 01-11 13:15:29.388 639 639 F DEBUG : #09 pc 000fc123 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+30) 01-11 13:15:29.388 639 639 F DEBUG : #10 pc 00100fff /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+5054) 01-11 13:15:29.388 639 639 F DEBUG : #11 pc 001127b5 /system/lib/libart.so (_ZN3art8CheckJNI12NewGlobalRefEP7_JNIEnvP8_jobject+376) 01-11 13:15:29.388 639 639 F DEBUG : #12 pc 00072817 /data/app/in.hashstash.battleship-2/lib/arm/libApp.so (_ZN8firebase4util37RegisterCallbackOnPendingResultOrTaskEP7_JNIEnvP8_jobjectPFvS2_S4_biPKcPvES7_S6_+214) 01-11 13:15:29.388 639 639 F DEBUG : #13 pc 0006c5bd /data/app/in.hashstash.battleship-2/lib/arm/libApp.so (_ZN8firebase13remote_config5FetchEy+84) 01-11 13:15:29.388 639 639 F DEBUG : #14 pc 0006a9c5 /data/app/in.hashstash.battleship-2/lib/arm/libApp.so (Firebase_RemoteConfig_CSharp_Fetch__SWIG_1+22) 01-11 13:15:29.388 639 639 F DEBUG : #15 pc 0000d074
01-11 13:15:30.978 639 639 F DEBUG :Note*: The app works fine when I go for the development build
So Does anyone know what's the cause as I know in log it says the PendingResult class could not be found but it's there in the play-services-base-11.8.0.aarfile and i've checked that by unzipping it and going through the classes.jar file.
And Yes when I do development build everything goes fine so I don't know what's the issue here.
There's also a dex limit issue which I've overcame by going for GradleBuild System for android instead of Unity's Default One.
Here's the log: 01-11 13:15:24.003 30673 32101 E Unity : Unable to find /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 01-11 13:15:26.061 1360 1424 I ActivityManager: Start proc 32189:com.android.settings/1000 for broadcast com.android.settings/.MiuiSettingsReceiver 01-11 13:15:26.084 30673 32101 I Unity : Firebase App initializing app in.hashstash.battleship (default 1). 01-11 13:15:26.084 30673 32101 I Unity : 01-11 13:15:26.084 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.084 30673 32101 I Unity : 01-11 13:15:26.116 30673 32101 I Unity : Firebase Analytics API Initializing 01-11 13:15:26.116 30673 32101 I Unity : 01-11 13:15:26.116 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.116 30673 32101 I Unity : 01-11 13:15:26.126 30673 32101 I Unity : Firebase Analytics API Initialized 01-11 13:15:26.126 30673 32101 I Unity : 01-11 13:15:26.126 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.126 30673 32101 I Unity : 01-11 13:15:26.260 30673 32101 I Unity : Remote Config API Initialized 01-11 13:15:26.260 30673 32101 I Unity : 01-11 13:15:26.260 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:26.260 30673 32101 I Unity : 01-11 13:15:27.668 30673 32101 I Unity : Enabling data collection. 01-11 13:15:27.668 30673 32101 I Unity : 01-11 13:15:27.668 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:27.668 30673 32101 I Unity : 01-11 13:15:28.755 30673 32101 I Unity : RemoteConfig configured and ready! 01-11 13:15:28.755 30673 32101 I Unity : 01-11 13:15:28.755 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:28.755 30673 32101 I Unity : 01-11 13:15:28.761 30673 32101 I Unity : Fetching data... 01-11 13:15:28.761 30673 32101 I Unity : 01-11 13:15:28.761 30673 32101 I Unity : (Filename: ./artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51) 01-11 13:15:28.761 30673 32101 I Unity : 01-11 13:15:29.324 639 639 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 01-11 13:15:29.324 639 639 F DEBUG : Build fingerprint: 'Xiaomi/land/land:6.0.1/MMB29M/V8.5.4.0.MALMIED:user/release-keys' 01-11 13:15:29.324 639 639 F DEBUG : Revision: '0' 01-11 13:15:29.324 639 639 F DEBUG : ABI: 'arm' 01-11 13:15:29.324 639 639 F DEBUG : pid: 30673, tid: 32101, name: Thread-15516 >>> in.hashstash.battleship <<< 01-11 13:15:29.324 639 639 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 01-11 13:15:29.374 639 639 F DEBUG : Abort message: 'art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/common/api/PendingResult;' 01-11 13:15:29.374 639 639 F DEBUG : r0 00000000 r1 00007d65 r2 00000006 r3 dab46978 01-11 13:15:29.374 639 639 F DEBUG : r4 dab46980 r5 dab46930 r6 0000000b r7 0000010c 01-11 13:15:29.374 639 639 F DEBUG : r8 ab5de160 r9 f5254378 sl 00000000 fp 00000000 01-11 13:15:29.374 639 639 F DEBUG : ip 00000006 sp dab45948 lr f72d9f5d pc f72dc358 cpsr 40070010 01-11 13:15:29.386 639 639 F DEBUG : 01-11 13:15:29.386 639 639 F DEBUG : backtrace: 01-11 13:15:29.386 639 639 F DEBUG : #00 pc 00044358 /system/lib/libc.so (tgkill+12) 01-11 13:15:29.386 639 639 F DEBUG : #01 pc 00041f59 /system/lib/libc.so (pthread_kill+32) 01-11 13:15:29.387 639 639 F DEBUG : #02 pc 0001ba6f /system/lib/libc.so (raise+10) 01-11 13:15:29.387 639 639 F DEBUG : #03 pc 00018c11 /system/lib/libc.so (__libc_android_abort+34) 01-11 13:15:29.387 639 639 F DEBUG : #04 pc 000167d0 /system/lib/libc.so (abort+4) 01-11 13:15:29.387 639 639 F DEBUG : #05 pc 00321035 /system/lib/libart.so (_ZN3art7Runtime5AbortEv+212) 01-11 13:15:29.387 639 639 F DEBUG : #06 pc 000f3d7d /system/lib/libart.so (_ZN3art10LogMessageD2Ev+2212) 01-11 13:15:29.387 639 639 F DEBUG : #07 pc 0024f877 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1526) 01-11 13:15:29.388 639 639 F DEBUG : #08 pc 0024fc17 /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+54) 01-11 13:15:29.388 639 639 F DEBUG : #09 pc 000fc123 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+30) 01-11 13:15:29.388 639 639 F DEBUG : #10 pc 00100fff /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+5054) 01-11 13:15:29.388 639 639 F DEBUG : #11 pc 001127b5 /system/lib/libart.so (_ZN3art8CheckJNI12NewGlobalRefEP7_JNIEnvP8_jobject+376) 01-11 13:15:29.388 639 639 F DEBUG : #12 pc 00072817 /data/app/in.hashstash.battleship-2/lib/arm/libApp.so (_ZN8firebase4util37RegisterCallbackOnPendingResultOrTaskEP7_JNIEnvP8_jobjectPFvS2_S4_biPKcPvES7_S6_+214) 01-11 13:15:29.388 639 639 F DEBUG : #13 pc 0006c5bd /data/app/in.hashstash.battleship-2/lib/arm/libApp.so (_ZN8firebase13remote_config5FetchEy+84) 01-11 13:15:29.388 639 639 F DEBUG : #14 pc 0006a9c5 /data/app/in.hashstash.battleship-2/lib/arm/libApp.so (Firebase_RemoteConfig_CSharp_Fetch__SWIG_1+22) 01-11 13:15:29.388 639 639 F DEBUG : #15 pc 0000d074
So Does anyone know what's the cause as I know in log it says the PendingResult class could not be found but it's there in the play-services-base-11.8.0.aarfile and i've checked that by unzipping it and going through the classes.jar file.
And Yes when I do development build everything goes fine so I don't know what's the issue here.
There's also a dex limit issue which I've overcame by going for GradleBuild System for android instead of Unity's Default One.