After updating to 5.1.1 my Android App crashes when loading Ads from AdMob via Blueprint integration with “Show Ad Banner” node. Configuration and integration worked fine before update in Version 5.1.0. I deleted several folders like Intermediate, Build, Configuration, ran SetupAndroid script and rebuild everything again. I am using sdk version android-31 and ndk version android-21. Anybody else having this issue and any ideas how to fix? Thank you all!
This stack trace is from Android Studio Debugging:
java_vm_ext.cc:594] JNI DETECTED ERROR IN APPLICATION: JNI IsSameObject called with pending exception java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzuy;
java_vm_ext.cc:594] at void com.google.android.gms.ads.BaseAdView.(android.content.Context, int) ((null):-1)
java_vm_ext.cc:594] at void com.google.android.gms.ads.AdView.(android.content.Context) ((null):-1)
java_vm_ext.cc:594] at void com.epicgames.unreal.GameActivity.AndroidThunkJava_ShowAdBanner(java.lang.String, boolean) (GameActivity.java:811)
java_vm_ext.cc:594] Caused by: java.lang.ClassNotFoundException: com.google.android.gms.internal.zzuy
java_vm_ext.cc:594] at java.lang.Class java.lang.VMClassLoader.findLoadedClass(java.lang.ClassLoader, java.lang.String) (VMClassLoader.java:-2)
java_vm_ext.cc:594] at java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) (ClassLoader.java:738)
java_vm_ext.cc:594] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:363)
java_vm_ext.cc:594] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
java_vm_ext.cc:594] at void com.google.android.gms.ads.BaseAdView.(android.content.Context, int) ((null):-1)
java_vm_ext.cc:594] at void com.google.android.gms.ads.AdView.(android.content.Context) ((null):-1)
java_vm_ext.cc:594] at void com.epicgames.unreal.GameActivity.AndroidThunkJava_ShowAdBanner(java.lang.String, boolean) (GameActivity.java:811)
java_vm_ext.cc:594]
java_vm_ext.cc:594] in call to IsSameObject
A/ly.crushForGold: runtime.cc:676] Runtime aborting…
runtime.cc:676] Dumping all threads without mutator lock held
runtime.cc:676] All threads:
runtime.cc:676] DALVIK THREADS (36):
runtime.cc:676] “GameThread” prio=10 tid=22 Runnable
runtime.cc:676] | group=“” sCount=0 ucsCount=0 flags=0 obj=0x13641058 self=0xb4000072986f8c00
runtime.cc:676] | sysTid=32209 nice=-10 cgrp=default sched=0/0 handle=0x7204e72cb0
runtime.cc:676] | state=R schedstat=( 4859086949 851260347 9613 ) utm=392 stm=93 core=7 HZ=100
runtime.cc:676] | stack=0x7204d7b000-0x7204d7d000 stackSize=991KB
runtime.cc:676] | held mutexes= “abort lock” “mutator lock”(shared held)
runtime.cc:676] native: #00 pc 0000000000536054 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+128) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #01 pc 00000000006ef5e4 /apex/com.android.art/lib64/libart.so (art::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits >&, bool, BacktraceMap*, bool) const+236) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #02 pc 00000000006fce70 /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+208) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #03 pc 00000000003619dc /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+440) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #04 pc 00000000006fb610 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&, bool)+280) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #05 pc 00000000006d6678 /apex/com.android.art/lib64/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+212) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #06 pc 00000000006d1364 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1016) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #07 pc 0000000000016ea8 /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+80) (BuildId: 420d56eac27a210c92900f3ddb760c86)
runtime.cc:676] native: #08 pc 0000000000016450 /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+352) (BuildId: 420d56eac27a210c92900f3ddb760c86)
runtime.cc:676] native: #09 pc 0000000000442a24 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+1612) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #10 pc 00000000003294f4 /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbortV(char const*, char const*, std::__va_list)+108) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #11 pc 000000000048927c /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::AbortF(char const*, …) (.__uniq.99033978352804627313491551960229047428)+144) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #12 pc 000000000045113c /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::ScopedCheck::Check(art::ScopedObjectAccess&, bool, char const*, art::(anonymous namespace)::JniValueType*) (.__uniq.99033978352804627313491551960229047428)+4244) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #13 pc 00000000005c4dbc /apex/com.android.art/lib64/libart.so (art::(anonymous namespace)::CheckJNI::IsSameObject(_JNIEnv*, _jobject*, _jobject*) (.__uniq.99033978352804627313491551960229047428.llvm.9836304948508935827)+152) (BuildId: a49c773ef6221a996ecea990e9753caa)
runtime.cc:676] native: #14 pc 000000000a2a812c /data/app/~~hz82Tz4k7BHesSdplbMKoA==/de.fly.crushForGold-jtJ9dstYXJPdHO2buowonQ==/lib/arm64/libUnreal.so (AndroidThunkCpp_ShowAdBanner(FString const&, bool)+136) (BuildId: 5eb5edb979b7f9e49356799c0d3591fb406b91a0)
runtime.cc:676] native: #15 pc 0000000013158ef4 /data/app/~~hz82Tz4k7BHesSdplbMKoA==/de.fly.crushForGold-jtJ9dstYXJPdHO2buowonQ==/lib/arm64/libUnreal.so (FAndroidAdvertisingProvider::ShowAdBanner(bool, int)+408) (BuildId: 5eb5edb979b7f9e49356799c0d3591fb406b91a0)
runtime.cc:676] native: #16 pc 0000000011a7557c /data/app/~~hz82Tz4k7BHesSdplbMKoA==/de.fly.crushForGold-jtJ9dstYXJPdHO2buowonQ==/lib/arm64/libUnreal.so (UKismetSystemLibrary::execShowAdBanner(UObject*, FFrame&, void*)+260) (BuildId: 5eb5edb979b7f9e49356799c0d3591fb406b91a0)
[----- deleted due to maximum character limit of forum —]
java.lang.VMClassLoader.findLoadedClass(java.lang.ClassLoader, java.lang.String) (VMClassLoader.java:-2)
runtime.cc:676] at java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) (ClassLoader.java:738)
runtime.cc:676] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:363)
runtime.cc:676] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
runtime.cc:676] at void com.google.android.gms.ads.BaseAdView.(android.content.Context, int) ((null):-1)
runtime.cc:676] at void com.google.android.gms.ads.AdView.(android.content.Context) ((null):-1)
runtime.cc:676] at void com.epicgames.unreal.GameActivity.AndroidThunkJava_ShowAdBanner(java.lang.String, boolean) (GameActivity.java:811)
runtime.cc:676]
runtime.cc:684] JNI DETECTED ERROR IN APPLICATION: JNI IsSameObject called with pending exception java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzuy;
runtime.cc:684] at void com.google.android.gms.ads.BaseAdView.(android.content.Context, int) ((null):-1)
runtime.cc:684] at void com.google.android.gms.ads.AdView.(android.content.Context) ((null):-1)
runtime.cc:684] at void com.epicgames.unreal.GameActivity.AndroidThunkJava_ShowAdBanner(java.lang.String, boolean) (GameActivity.java:811)
runtime.cc:684] Caused by: java.lang.ClassNotFoundException: com.google.android.gms.internal.zzuy
runtime.cc:684] at java.lang.Class java.lang.VMClassLoader.findLoadedClass(java.lang.ClassLoader, java.lang.String) (VMClassLoader.java:-2)
runtime.cc:684] at java.lang.Class java.lang.ClassLoader.findLoadedClass(java.lang.String) (ClassLoader.java:738)
runtime.cc:684] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:363)
runtime.cc:684] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
runtime.cc:684] at void com.google.android.gms.ads.BaseAdView.(android.content.Context, int) ((null):-1)
runtime.cc:684] at void com.google.android.gms.ads.AdView.(android.content.Context) ((null):-1)
runtime.cc:684] at void com.epicgames.unreal.GameActivity.AndroidThunkJava_ShowAdBanner(java.lang.String, boolean) (GameActivity.java:811)
runtime.cc:684]
runtime.cc:684] in call to IsSameObject
--------- beginning of crash
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 32209 (GameThread), pid 31677 (main)
I am having the same issue, by trace is nearly identical to yours. Hopefully there’s a solution, but I haven’t found it yet.
I reported a bug, but no update so far.
i tried a to setup everything according to documentation on a new laptop, also not working. Did you have some luck?
I’m having the same issue. Using “Show External Login UI” also makes the game crash now.
I have the same problem with Unreal 5.1.1, in the android device the node “Show External Login UI” makes the game crash (JNI DETECTED ERROR IN APPLICATION: RegisterNatives received NULL jclass). In iOS it works
Anyone found a solution?
problem fixed here : Failed resolution of: Lcom/google/android/gms/internal/zzuy - YouTube
so i found the buildadditions.gradle file twice in my project files, but if i change them and build my project again it just puts them back as before, where can i find the original file where the dependancies are drawn from?
Any news about this bug? I’m having the exact same error on 5.1.1. Do you have a link to the bug the original poster created? Thanks!