Repository navigation
NoSuchMethodError FirebaseCrashlyticsNdk class is included in your app. #1177
Description
Activity
Same here, but Unity 2020.3.22:
E/Unity: ApplicationException: Unable to find Method com/google/firebase/crashlytics/ndk/FirebaseCrashlyticsNdk.getInstance (signature '()Lcom/google/firebase/crashlytics/ndk/FirebaseCrashlyticsNdk;', static). Please verify the AAR which contains the com/google/firebase/crashlytics/ndk/FirebaseCrashlyticsNdk class is included in your app. at Firebase.Crashlytics.FirebaseCrashlyticsInternal.GetInstance (Firebase.FirebaseApp app, Firebase.InitResult& init_result_out) [0x00000] in <00000000000000000000000000000000>:0 at Firebase.Crashlytics.AndroidImpl..ctor () [0x00000] in <00000000000000000000000000000000>:0 at Firebase.Crashlytics.Impl.Make () [0x00000] in <00000000000000000000000000000000>:0 at Firebase.Crashlytics.Crashlytics+PlatformAccessor..cctor () [0x00000] in <00000000000000000000000000000000>:0 at Firebase.Crashlytics.Crashlytics.Initialize () [0x00000] in <00000000000000000000000000000000>:0 at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttReacted by solinvictus1313Same Problem with Unity 2019.4.30
Firebase Unity SDK version: 8.6.0
Google Admob - 6.1.2
Scripting Backend - IL2CPP and MONOUnable to find Method com/google/firebase/crashlytics/ndk/FirebaseCrashlyticsNdk.getInstance (signature '()Lcom/google/firebase/crashlytics/ndk/FirebaseCrashlyticsNdk;', static). Please verify the AAR which contains the com/google/firebase/crashlytics/ndk/FirebaseCrashlyticsNdk class is included in your app.
method_ids[i] || (method.optional == kMethodOptional)
Firebase.Crashlytics.CrashlyticsInternalPINVOKE:FirebaseCrashlyticsInternal_GetInstance__SWIG_0(HandleRef, Int32&)
Firebase.Crashlytics.FirebaseCrashlyticsInternal:GetInstance(FirebaseApp, InitResult&)
Firebase.Crashlytics.AndroidImpl:.ctor()
Firebase.Crashlytics.Impl:Make()
Firebase.Crashlytics.PlatformAccessor:.cctor()
Firebase.Crashlytics.Crashlytics:Initialize()
System.Reflection.MonoMethod:Invoke(Object, BindingFlags, Binder, Object[], CultureInfo)
Firebase.FirebaseApp:InitializeCrashlyticsIfPresent()
System.Func1:Invoke() Firebase.FirebaseApp:CreateAndTrack(CreateDelegate, FirebaseApp) CrashlyticsInit:<Start>b__4_0(Task1)
System.Action1:Invoke(T) Firebase.Extensions.<ContinueWithOnMainThread>c__AnonStorey9:<>m__0() System.Func1:Invoke()
Firebase.c__AnonStorey1`1:<>m__0()
System.Action:Invoke()
Firebase.ExceptionAggregator:Wrap(Action)
Firebase.Dispatcher:PollJobs()
Firebase.Platform.FirebaseHandler:Update()Thanks for reporting this, @keepup.
May I know how this issue could be replicated so that we can identify what's causing this? Could you also confirm if your implementation is using the IL2CPP scripting backend?
- addedneeds-infoNeed information for the developerNeed information for the developerand removedneeds-infoNeed information for the developerNeed information for the developer
on Nov 9, 2021 Hi @keepup & @AjayC-Bsw, it looks like the version of Crashlytics for Android didn't get updated with this release of our Unity SDK. The following workaround should resolve the problem:
Open
Assets/Firebase/Editor/CrashlyticsDependencies.xml. Change the version ofcom.google.firebase:firebase-crashlytics-ndk:18.0.1to18.2.4.This will cause the dependency resolver to download the correct version of the Crashlytics Android SDK, which includes the missing method identified in the error message. Subsequent builds should work as expected.
Our next release will include the correct dependency version, so this workaround will not be required in the future.
Reacted by Tian and AjayC-BswThe workaround seems to work nicely. I still have to check the actual crash reporting functionality after this upgrade, but this brings me a lot closer. Thanks a lot @mrichards
11-09 21:17:36.663 21521 21521 I FirebaseCrashlytics: Initializing Firebase Crashlytics 18.2.4 for com.asd.xyz 11-09 21:17:37.905 21521 21606 D libcrashlytics: Initializing libcrashlytics version 3.1.0 11-09 21:17:37.906 21521 21606 D libcrashlytics: Initializing native crash handling successful.Reacted by Marc RichardsWe've just released a new version, 8.6.1, which has the correct
Assets/Firebase/Editor/CrashlyticsDependencies.xmlfile. Thanks for bringing this issue to our attention.Reacted by Tian, AjayC-Bsw and solinvictus1313- locked and limited conversation to collaborators
on Dec 10, 2021
[REQUIRED] Please fill in the following fields:
[REQUIRED] Please describe the question here:
This is logs: