Porting xna to android in xamarin

BhupeshbeheraBhupeshbehera INMember ✭✭

I am trying to port a xna game to android,facing lot of issues.Currently facing following exception.I am stuck in this.Please help me..[MonoDroid] UNHANDLED EXCEPTION:
[MonoDroid] Microsoft.Xna.Framework.Graphics.MonoGameGLException: GL.GetError() returned InvalidOperation
[MonoDroid] at Microsoft.Xna.Framework.Graphics.GraphicsExtensions.CheckGLError () [0x0000f] in c:\Users\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\GraphicsExtensions.cs:891
[MonoDroid] at Microsoft.Xna.Framework.Graphics.Shader.b__0 () [0x0000d] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\Shader\Shader.OpenGL.cs:141
[MonoDroid] at Microsoft.Xna.Framework.Threading.BlockOnUIThread (System.Action) [0x00036] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Threading.cs:177
[MonoDroid] at Microsoft.Xna.Framework.Graphics.Shader.Dispose (bool) [0x0001d] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\Shader\Shader.OpenGL.cs:138
[MonoDroid] at Microsoft.Xna.Framework.Graphics.GraphicsResource.Dispose () [0x00001] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\GraphicsResource.cs:82
[MonoDroid] at Microsoft.Xna.Framework.Graphics.Effect.Dispose (bool) [0x00046] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\Effect\Effect.cs:211
[MonoDroid] at Microsoft.Xna.Framework.Graphics.GraphicsResource.Dispose () [0x00001] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\GraphicsResource.cs:82
[MonoDroid] at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dispose (bool) [0x0005d] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\GraphicsDevice.cs:457
[MonoDroid] at Microsoft.Xna.Framework.Graphics.GraphicsDevice.Dispose () [0x00001] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Graphics\GraphicsDevice.cs:440
[MonoDroid] at Microsoft.Xna.Framework.GraphicsDeviceManager.Dispose (bool) [0x00023] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\GraphicsDeviceManager.cs:174
[MonoDroid] at Microsoft.Xna.Framework.GraphicsDeviceManager.Dispose () [0x00001] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\GraphicsDeviceManager.cs:162
[MonoDroid] at Microsoft.Xna.Framework.Game.Dispose (bool) [0x0008f] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Game.cs:122
[MonoDroid] at Microsoft.Xna.Framework.Game.Dispose () [0x00001] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Game.cs:94
[MonoDroid] at Microsoft.Xna.Framework.AndroidGameActivity.OnDestroy () [0x00022] in c:\Users\Anny\Desktop\ANDROID\framework\MonoGame-develop\MonoGame.Framework\Android\AndroidGameActivity.cs:95
[MonoDroid] at Android.App.Activity.n_OnDestroy (intptr,intptr) [0x00009] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.App.Activity.cs:2949
[MonoDroid] at (wrapper dynamic-method) object.0c70b9c2-84ea-4526-9089-928651a215e0 (intptr,intptr)
[AndroidRuntime] Shutting down VM

Tagged:
Sign In or Register to comment.