Open donatellijl opened 3 years ago
Any progress on this I also cannot get your sample project to build, receive error
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Java.Lang.IllegalMonitorStateException: object not locked by thread before wait() at Java.Interop.JniEnvironment+InstanceMethods.CallNonvirtualVoidMet…
Please advise.
Xamarin.Android Version (eg: 6.0):
11.2.2.1
Operating System & Version (eg: Mac OSX 10.11):
Mac OSX 11.2.3
Google Play Services Version
Describe your Issue
I am trying to upgrade Xamarin.Firebase.Config from 71.1610.4 to 120.0.3. After upgrading and removing all the deprecated calls and replacing with the new methods, Firebase Remote Config is no longer working. I have copied the code from the FirebaseConfigQuickstart sample project, but I get an error "Java.Lang.IllegalMonitorStateException: object not locked by thread before wait()" on any call that had .Wait() at the end.
If I remove the .Wait(), I get this error on calling FetchAsync(), "{Firebase.RemoteConfig.FirebaseRemoteConfigClientException: Firebase Installations failed to get installation auth token for fetch. ---> Firebase.Installations.FirebaseInstallationsException: Firebase Installations Service is unavailable. Please try again later…}"
I am not able to get the FirebaseConfigQuickstart project to work either. It builds, but crashes on open with the error "java.lang.RuntimeException: Unable to instantiate application androidx.multidex.MultiDexApplication: java.lang.ClassNotFoundException: Didn't find class "androidx.multidex.MultiDexApplication" on path: DexPathList[[zip file "/data/app/com.xamarin.firebase.configquickstart-MRg5oGkzFAa2yGuZxRptfQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.xamarin.firebase.configquickstart-MRg5oGkzFAa2yGuZxRptfQ==/lib/x86, /data/app/com.xamarin.firebase.configquickstart-MRg5oGkzFAa2yGuZxRptfQ==/base.apk!/lib/x86, /system/lib, /system/product/lib]]". The sample project is also currently using 119.1.1.
Can you upgrade the sample project to use 120.0.3 and demonstrate a working example?
Relevant information
Add relevant project settings from
*.csproj
file:Packages used:
Build settings (tools)
Info from Google about removing the methods we are currently using on 71.1610.4: Remote Config version 20.0.0
Minimal Repro Code Sample
Steps to Reproduce (with link to sample solution if possible):
Upgrade Xamarin.Firebase.Config to 120.0.3.