FirebaseExtended / cocos2dx-cpp-sample

Firebase Cocos2d-x samples
http://firebase.google.com/games
MIT License
53 stars 25 forks source link

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. #20

Closed NanZii closed 5 years ago

NanZii commented 5 years ago

When i run sample code remote_config in cocos2dx-cpp-sample 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

formatCvt commented 5 years ago

this samples are outdated and uses old way to include firebase dependencies for android. Try new way: https://firebase.google.com/docs/cpp/setup?platform=android#add_sdk

NanZii commented 5 years ago

I tried with new way but still this bug occur.

Seem this bug just happen with remoteconfig. I tested with Firebase Analytics, it's ok

NanZii commented 5 years ago

I upgraded to firebase_cpp_sdk_6.0.0 this bug is resolved, maybe i am used old sdk