You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to find Method com/google/firebase/remoteconfig/FirebaseRemoteConfig.setDefaults. Please verify the AAR which contains the com/google/firebase/remoteconfig/FirebaseRemoteConfig class is included in your app.
#8
Closed
NanZii opened this issue
May 14, 2019
· 4 comments
When i run sample code remote_config in quickstart-cpp-master repository, i caught "A/firebase: Unable to find Method com/google/firebase/remoteconfig/FirebaseRemoteConfig.setDefaults (signature '(ILjava/lang/String;)V', instance). Please verify the AAR which contains the com/google/firebase/remoteconfig/FirebaseRemoteConfig class is included in your app." error.
Anyone have idea to fix that ? Tks
The text was updated successfully, but these errors were encountered:
Typically that means that the Android dependencies are missing. Are you using the quickstart as is, or did you make any modifications to the build.gradle file? What version of the Firebase SDK are you using?
And could you share more of the logs, there might be something in them that can indicate the issue.
Firebase SDK version: firebase_cpp_sdk_6.0.0
My setup in gradle follow this document https://firebase.google.com/docs/cpp/setup?authuser=0&platform=android and i used ndk-build to add SDKs
Detail about this bug:
System.err: java.lang.NoSuchMethodError: no non-static method "Lcom/google/firebase/remoteconfig/FirebaseRemoteConfig;.setDefaults(ILjava/lang/String;)V
A/firebase: Unable to find Method com/google/firebase/remoteconfig/FirebaseRemoteConfig.setDefaults (signature '(ILjava/lang/String;)V', instance). Please verify the AAR which contains the com/google/firebase/remoteconfig/FirebaseRemoteConfig class is included in your app.
Seem this bug just happen with Remote Config. I tested with Firebase Analytics, it's ok
It would seem that you are using a prior version of the C++ library that is still trying to reference old functions in the Android library, but you are also using the new version of the Android library, so it can't resolve them. Can you confirm that you are indeed using version 6.0.0 of the C++ SDK? Also, what are your Android dependencies being set as?
When i run sample code remote_config in quickstart-cpp-master repository, i caught "A/firebase: Unable to find Method com/google/firebase/remoteconfig/FirebaseRemoteConfig.setDefaults (signature '(ILjava/lang/String;)V', instance). Please verify the AAR which contains the com/google/firebase/remoteconfig/FirebaseRemoteConfig class is included in your app." error.
Anyone have idea to fix that ? Tks
The text was updated successfully, but these errors were encountered: