Closed crazyhatfish closed 6 years ago
Looking for some quick clarification: I notice your callstack has cocos functions in it. Is this callstack from the firebase cocos2d-x sample app, or from a custom cocos app? If this crash was happening in the cocos sample app, I've recently updated the gradle build files to include the correct firebase library version (version 11.0.0, rather than 10.2.0). If this is a custom cocos app, can you verify for me that you're using the most up to date version of the library (11.0.0)? If everything is up to date and you're still seeing this let me know and I'll help you dig deeper.
This is a custom integration to a cocos app. I upgraded the library to 11.0.2, which is what I saw the updated documentation now says, and added the dependency to com.google.android.gms:play-services-base:11.0.2
and it no longer crashes. Thanks a lot!
Library
Firebase C++ SDK: 4.0.2
Problem
Been adding the Firebase SDK to an Android application which has been going relatively smoothly (looks like a well-designed SDK btw) but when it hits:
It crashes with
jmethodID was NULL
.Additional Information
I've checked the output of
JniHelper::getEnv()
andJniHelper::getActivity()
and they look valid. It also complains about the missing methods as in issue #7.I imagine that the SDK code that calls
CallObjectMethodV
attempts to get ajmethodID
for a method but fails (am I right in thinking their arn't any required Java methods for the Android C++ SDK to work?) and nothing picks up that failure soCallObjectMethodV
is called with a null argument.Stack Trace