android-ndk-rs icon indicating copy to clipboard operation
android-ndk-rs copied to clipboard

dlopen failed: cannot locate symbol "AConfiguration_getScreenRound"

Open MarcoPolo opened this issue 5 years ago • 1 comments

Hey there! thanks for this library!

I ran into this issue, possibly related to my build process, when I build some code using android_ndk. When I add android_ndk My .so file now has the symbol AConfiguration_getScreenRound. Which makes sense because you create the bindings for android/configuration. But Android can't seem to find the thing to link it to!

I also get this issue when adding AConfiguration_getScreenRound(state->config) to the native-activity sample in ndk-samples.

Maybe I didn't link some library? I looked at the symbols in all of the lib*.so in the ndk and I didn't see a symbol for AConfiguration_getScreenRound either (but I see symbols for AConfiguration_getScreenLong). So I don't think I'm forgetting to link something.

Maybe if you too can't get it working, then AConfiguration_getScreenRound should be behind a cargo feature?

Or am I missing something really obvious?

MarcoPolo avatar Dec 18 '19 01:12 MarcoPolo

Looks like it's an Android issue: https://issuetracker.google.com/issues/146458518

MarcoPolo avatar Dec 20 '19 00:12 MarcoPolo