Not able to run android version - simple 3D app

Hello, we are having problem with android version of our simple 3D application. It works fine on win10 or WP. But we are getting these exceptions(bellow). It would be greaat if you could tell us what we are doing wrong or at least point us to the right direction. Thanks and we love Xenko.

Debugging in emulator (xamarin)
UNHANDLED EXCEPTION:
System.InvalidOperationException: FBO is incomplete: RT 140 Depth 1 (error: FramebufferUnsupported)
at SiliconStudio.Xenko.Graphics.GraphicsDevice.FindOrCreateFBO (SiliconStudio.Xenko.Graphics.Texture depthStencilBuffer, SiliconStudio.Xenko.Graphics.Texture[] renderTargets) [0x00212] in :0
at SiliconStudio.Xenko.Graphics.CommandList.SetupTargets () [0x0000f] in :0
at SiliconStudio.Xenko.Graphics.CommandList.SetRenderTargetsImpl (SiliconStudio.Xenko.Graphics.Texture depthStencilBuffer, Int32 renderTargetCount, SiliconStudio.Xenko.Graphics.Texture[] renderTargets) [0x000c3] in :0
at SiliconStudio.Xenko.Graphics.CommandList.SetRenderTarget (SiliconStudio.Xenko.Graphics.Texture depthStencilView, SiliconStudio.Xenko.Graphics.Texture renderTargetView) [0x0001d] in :0
at SiliconStudio.Xenko.Graphics.CommandList.ClearStateImpl () [0x000c1] in :0
at SiliconStudio.Xenko.Graphics.CommandList.ClearState () [0x00000] in :0
at SiliconStudio.Xenko.Graphics.CommandList…ctor (SiliconStudio.Xenko.Graphics.GraphicsDevice device) [0x000c7] in :0
at SiliconStudio.Xenko.Games.GameBase.BeginDraw () [0x0002d] in :0
at SiliconStudio.Xenko.Games.GameBase.InitializeBeforeRun () [0x0006d] in :0

Debugging on phone (galaxy s5)
UNHANDLED EXCEPTION:
System.InvalidOperationException: EglCreateContext 3006
at SiliconStudio.Xenko.Graphics.AndroidAsyncGraphicsContext…ctor (OpenTK.Platform.Android.AndroidGraphicsContext graphicsContext, OpenTK.Platform.Android.AndroidWindow androidWindow, Int32 versionMajor) [0x0020e] in :0
at SiliconStudio.Xenko.Graphics.GraphicsDevice.InitializePlatformDevice (SiliconStudio.Xenko.Graphics.GraphicsProfile[] graphicsProfiles, DeviceCreationFlags deviceCreationFlags, SiliconStudio.Xenko.Graphics.WindowHandle windowHandle) [0x001b7] in :0
at SiliconStudio.Xenko.Graphics.GraphicsDevice.Recreate (SiliconStudio.Xenko.Graphics.GraphicsAdapter adapter, SiliconStudio.Xenko.Graphics.GraphicsProfile[] profile, DeviceCreationFlags deviceCreationFlags, SiliconStudio.Xenko.Graphics.WindowHandle windowHandle) [0x0002f] in :0
at SiliconStudio.Xenko.Graphics.GraphicsDevice…ctor (SiliconStudio.Xenko.Graphics.GraphicsAdapter adapter, SiliconStudio.Xenko.Graphics.GraphicsProfile[] profile, DeviceCreationFlags deviceCreationFlags, SiliconStudio.Xenko.Graphics.WindowHandle windowHandle) [0x000a8] in :0
at SiliconStudio.Xenko.Graphics.GraphicsDevice.New (SiliconStudio.Xenko.Graphics.GraphicsAdapter adapter, DeviceCreationFlags creationFlags, SiliconStudio.Xenko.Graphics.WindowHandle windowHandle, SiliconStudio.Xenko.Graphics.GraphicsProfile[] graphicsProfiles) [0x0000a] in :0
at SiliconStudio.Xenko.Games.GamePlatform.CreateDevice (SiliconStudio.Xenko.Games.GraphicsDeviceInformation deviceInformation) [0x00025] in :0
at SiliconStudio.Xenko.Games.GamePlatform.ChangeOrCreateDevice (SiliconStudio.Xenko.Graphics.GraphicsDevice currentDevice, SiliconStudio.Xenko.Games.GraphicsDeviceInformation deviceInformation) [0x00003] in :0
at SiliconStudio.Xenko.Games.GraphicsDeviceManager.CreateDevice (SiliconStudio.Xenko.Games.GraphicsDeviceInformation newInfo) [0x00059] in :0
at SiliconStudio.Xenko.Games.GraphicsDeviceManager.ChangeOrCreateDevice (Boolean forceCreate) [0x0019a] in :0
at SiliconStudio.Xenko.Games.GraphicsDeviceManager.SiliconStudio.Xenko.Games.IGraphicsDeviceManager.CreateDevice () [0x00000] in :0
at SiliconStudio.Xenko.Games.GameBase.InitializeBeforeRun () [0x00011] in :0

Any solutions? Or is Xenko a dead horse for riding on android?

We fixed some Android EGL context creation issues that were happening on some specific devices.
It will be part of next bugfix release.

Concerning emulators, unfortunately many of their OpenGL emulation layers are quite bugged.

“Many thanks”,

now Xenko crashes on any of my Android devices with an exception:

System.NotSupportedException: Could not activate JNI Handle 0xbfe20878 (key_handle 0x95f84f8) of Java type ‘md5b0d6331a7a700f3334f804848136cd4a/AnimatedModel2Activity’ as managed type ‘AnimatedModel2.AnimatedModel2Activity’.

Best regards
killingfields

What version of Xamarin are you using? Make sure it’s the latest update, and if still not working please switch to beta.

I have the latest stable version of Xamarin installed. But I will check the latest beta now.

I have tested our game with the latest beta version of Xamarin, I can start the app on the Android device without any error. But if I would like to debug the app, I get now the following exception “libaot-System.Runtime.Serialization.dll.so not found”

Any Idea? I know it is now a Xamarin problem but it would be nice to have a solution.

Best regards
killingfields