-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No implementation found for long com.google.androidgamesdk.GameActivity.initializeNativeCode
#101
Comments
Apart from changing these two version numbers, should I make any code changes to make it work? |
Ooooohhh, my mistake, I thought the |
ah right, yeah, the update to GameActivity 2.0.2 will be part of a 0.5 release, hopefully soon. I did consider releasing the update as part of a 0.4 release (since it's ambiguous whether we should treat it as a semver break for the crate) but since there were other reasons for needing a 0.5 release anyway I decided I'd include it in 0.5 instead. Before releasing 0.5 I have an input API update I also want to land for exposing I'd like to have 0.5 available for Winit 0.29 which should be released soonish |
Was |
#88 was the first time doing an update since I first bootstrapped GameActivity support. Previously GameActivity was based on a snapshot from Git taken on May 25th 2022, and required several patches to even get it to compile. The base commit from https://android.googlesource.com/platform/frameworks/opt/gamesdk/ was e8c66318443e5c864395725d7e4416d5b46242f8 I believe. This fell between 1.1.0 and 1.2.0, but yeah that was before they enabled "derived classes of GameActivity to handle native library loading" which I guess is when We need to maintain fewer patches to the GameActivity code now so I'd guess it should be easier to track releases too. It's nicer that this update corresponds to a specific 2.0.2 release. |
I see, thanks! I'll wait for |
After updating
android-activity
from0.4.2
to0.4.3
, andandroidx.games:games-activity
from1.1.0
to2.0.2
, I get this error when I'm creating theGameActivity
subclass instance:No implementation found for long com.google.androidgamesdk.GameActivity.initializeNativeCode(java.lang.String, java.lang.String, java.lang.String, android.content.res.AssetManager, byte[], android.content.res.Configuration) (tried Java_com_google_androidgamesdk_GameActivity_initializeNativeCode and Java_com_google_androidgamesdk_GameActivity_initializeNativeCode__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Landroid_content_res_AssetManager_2_3BLandroid_content_res_Configuration_2)
This is with: https://github.com/torokati44/ruffle-android/actions/runs/5739934997
The last working build was: https://github.com/torokati44/ruffle-android/actions/runs/5739934006
This is all that's changed between the working and crashing builds: ruffle-rs/ruffle-android@99aae5f
EDIT: I've updated the "last working build" so the regressing diff is smaller and more relevant ... again.
The text was updated successfully, but these errors were encountered: