ppy / osu-framework

A game framework written with osu! in mind.
MIT License
1.65k stars 416 forks source link

Hard crash on Android due to conflicting linux and android SDL3 libs #6299

Closed Susko3 closed 4 months ago

Susko3 commented 4 months ago

(Please note that the version of ppy.SDL3-CS.Android and ppy.SDL3-CS don't match on master, but this is unrelated.)

The compiler will package the linux libs (from SDL3-CS) instead of the android libs (from SDL3-CS.Android). A local SDL3-CS nuget without linux libs works fine.

2>libSDL3.so: Warning XA4301 : APK already contains the item lib/arm64-v8a/libSDL3.so; ignoring.
2>libSDL3.so: Warning XA4301 : APK already contains the item lib/armeabi-v7a/libSDL3.so; ignoring.
2>libSDL3.so: Warning XA4301 : APK already contains the item lib/x86/libSDL3.so; ignoring.

image

Susko3 commented 4 months ago

The solution might be to move the android libSDL3.so into base SDL3-CS project. See https://github.com/xamarin/xamarin-android/issues/8794#issuecomment-1984044258. iOS libs are already in the base project.