We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3393

Summary: Cannot locate symbol "Java_org_libsdl_app_SDLActivity_onNativeDropFile"
Product: SDL Reporter: Andrii Hontarenko <andrii.hontarenko>
Component: buildAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: philipp.wiesemann
Version: 2.0.4   
Hardware: ARM   
OS: Android (All)   

Description Andrii Hontarenko 2016-07-16 22:40:23 UTC
I had ported my own application based on SDL2 to android.
And I found the issue when my android application loading:
W/System.err(29585): dlopen failed: cannot locate symbol "Java_org_libsdl_app_SDLActivity_onNativeDropFile" referenced by "libMyLib.so"...
In this case a have found the way to fix this issue by using psevdo patch before launch SDL2 build:
sed -i 's|void Java_org_libsdl_app_SDLActivity_onNativeDropFile|JNIEXPORT void JNICALL Java_org_libsdl_app_SDLActivity_onNativeDropFile|g' ./src/core/android/SDL_android.c
Hope, it can be usefull.
Comment 1 Philipp Wiesemann 2016-07-17 20:06:12 UTC
This patch is now https://hg.libsdl.org/SDL/rev/6ab154366a9b, thanks!