Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/277.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 缺少方法集\u RenderOnUIThread_C#_Android_Visual Studio 2013_Xna 4.0_Monogame - Fatal编程技术网

C# 缺少方法集\u RenderOnUIThread

C# 缺少方法集\u RenderOnUIThread,c#,android,visual-studio-2013,xna-4.0,monogame,C#,Android,Visual Studio 2013,Xna 4.0,Monogame,我正在用Visual C#Studio 2013 Express和单声道游戏制作一个C#游戏。 调试解决方案时,我在以下几行中遇到错误: public class Game1 : Game { public SpriteBatch SpriteBatch; public Game1() { var graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "C

我正在用Visual C#Studio 2013 Express和单声道游戏制作一个C#游戏。
调试解决方案时,我在以下几行中遇到错误:

 public class Game1 : Game
{
    public SpriteBatch SpriteBatch;

    public Game1()
    {
        var graphics = new GraphicsDeviceManager(this);
        Content.RootDirectory = "Content";

        graphics.IsFullScreen = true;
        graphics.PreferredBackBufferWidth = 800;
        graphics.PreferredBackBufferHeight = 480;
        graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft | DisplayOrientation.LandscapeRight;
    }// and more...
错误(3081):程序集OpenTK-1.0.dll中缺少方法OpenTK.Platform.Android.AndroidGameView::set_RenderOnUIThread(bool),在assembly/data/data/Game1.Game1/files/override/MonoGame.Framework.dll中引用

发生未处理的异常


请帮帮我。

你为什么认为这是一个错误?它清楚地表明,它是只读的。如何修复此错误?