-
Notifications
You must be signed in to change notification settings - Fork 1
Open

Description
Problem:
When building the project "ExampleAndroid" in VS2022 the build completes and runs on the device but only displays a white screen.
Attempted:
Android Simulator: Pixel 7 API 34 (x86_64)
Android Simulator: Pixel 7 API 26 (x86_64)
Expected:
Working Android SDL2 Sample
Output:
am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.yourcompany.yourapp/crc64473cc67a8f54b507.MainActivity"
> Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.yourcompany.yourapp/crc64473cc67a8f54b507.MainActivity }
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Private.CoreLib.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/ExampleAndroid.dll
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Mono.Android.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Runtime.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Java.Interop.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Runtime.InteropServices.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Collections.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Mono.Android.Runtime.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Threading.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Threading.Thread.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Diagnostics.StackTrace.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Memory.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Reflection.Emit.Lightweight.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Reflection.Emit.ILGeneration.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Reflection.Primitives.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Microsoft.VisualStudio.DesignTools.MobileTapContracts.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/netstandard.dll [External]
Thread started: <Thread Pool> #2
Thread started: .NET TP Gate #3
Thread started: <Thread Pool> #4
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Microsoft.VisualStudio.DesignTools.TapContract.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Console.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Hexa.NET.SDL2.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/HexaGen.Runtime.dll [External]
Thread started: #5
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/Hexa.NET.Utilities.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Net.Primitives.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Linq.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Diagnostics.TraceSource.dll [External]
Loaded assembly: /data/data/com.yourcompany.yourapp/files/.__override__/System.Collections.Specialized.dll [External]
[0:] Hot Reload initialization error: No HotReload connection specified
[company.yourapp] Late-enabling -Xcheck:jni
[company.yourapp] Using CollectorTypeCC GC.
[company.yourapp] Unexpected CPU variant for x86: x86_64.
[company.yourapp] Known variants: atom, sandybridge, silvermont, goldmont, goldmont-plus, tremont, kabylake, default
[CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10192; state: ENABLED
[CompatibilityChangeReporter] Compat change id reported: 242716250; UID 10192; state: ENABLED
[ziparchive] Unable to open '/data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/base.dm': No such file or directory
[ziparchive] Unable to open '/data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/base.dm': No such file or directory
[nativeloader] Configuring clns-6 for other apk /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64:/data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/com.yourcompany.yourapp
[GraphicsEnvironment] Currently set values for:
[GraphicsEnvironment] angle_gl_driver_selection_pkgs=[]
[GraphicsEnvironment] angle_gl_driver_selection_values=[]
[GraphicsEnvironment] ANGLE GameManagerService for com.yourcompany.yourapp: false
[GraphicsEnvironment] com.yourcompany.yourapp is not listed in per-application setting
[GraphicsEnvironment] Neither updatable production driver nor prerelease driver is supported.
[debug-app-helper] Checking if libmonodroid was unpacked to /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64/libmonodroid.so
[debug-app-helper] Native libs extracted to /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64, assuming application/android:extractNativeLibs == true
[debug-app-helper] Setting up for DSO lookup in app data directories
[debug-app-helper] Added filesystem DSO lookup location: /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64
[debug-app-helper] Using runtime path: /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64
[debug-app-helper] checking directory: `/data/user/0/com.yourcompany.yourapp/files/.__override__/lib`
[debug-app-helper] directory does not exist: `/data/user/0/com.yourcompany.yourapp/files/.__override__/lib`
[debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.yourcompany.yourapp/files/.__override__/libmonosgen-2.0.so
[debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64/libmonosgen-2.0.so
[debug-app-helper] Mono runtime found at: /data/app/~~OCrZ6iYQxdz4OfNIj9EFjw==/com.yourcompany.yourapp-HreU2CpycDcu7UDsbLjmYQ==/lib/x86_64/libmonosgen-2.0.so
[company.yourapp] Attempt to remove non-JNI local reference
[DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c
[DOTNET] GetOptionalClassGRef: optional class com/android/org/conscrypt/OpenSSLEngineImpl was not found
[monodroid] Creating public update directory: `/data/user/0/com.yourcompany.yourapp/files/.__override__`
[company.yourapp] Attempt to remove non-JNI local reference
[monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=10.0.2.2:62715,embedding=1,timeout=30000
[monodroid-assembly] open_from_bundles: failed to load assembly ExampleAndroid.dll
[monodroid-gc] GREF GC Threshold: 46080
[monodroid-assembly] open_from_bundles: failed to load assembly Mono.Android.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Java.Interop.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Runtime.InteropServices.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Collections.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Mono.Android.Runtime.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Threading.Thread.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Diagnostics.StackTrace.dll
[company.yourapp] Attempt to remove non-JNI local reference
[libEGL] loaded /vendor/lib64/egl/libEGL_emulation.so
[libEGL] loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
[libEGL] loaded /vendor/lib64/egl/libGLESv2_emulation.so
[monodroid-assembly] open_from_bundles: failed to load assembly System.Memory.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.Lightweight.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Emit.ILGeneration.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Reflection.Primitives.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.MobileTapContracts.dll
[monodroid-assembly] open_from_bundles: failed to load assembly netstandard.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Microsoft.VisualStudio.DesignTools.TapContract.dll
[monodroid-assembly] open_from_bundles: failed to load assembly System.Console.dll
[monodroid-assembly] open_from_bundles: failed to load assembly Hexa.NET.SDL2.dll
[monodroid-assembly] open_from_bundles: failed to load assembly HexaGen.Runtime.dll
[SDL] Request to get environment variables before JNI is ready
[SDL] Request to get environment variables before JNI is ready
[SDL] Request to get environment variables before JNI is ready
[monodroid-assembly] open_from_bundles: failed to load assembly Hexa.NET.Utilities.dll
[SDL] Request to get environment variables before JNI is ready
[SDL] Request to get environment variables before JNI is ready
[SDL] Request to get environment variables before JNI is ready
[SDL] Request to get environment variables before JNI is ready
[SDL] Request to get environment variables before JNI is ready
How can we fix this?
Metadata
Metadata
Assignees
Labels
No labels