【问题标题】:Xamarin.Forms - App does not openXamarin.Forms - 应用程序无法打开
【发布时间】:2017-04-22 23:53:44
【问题描述】:

我正在 Windows 10 机器上使用 Visual Studio 2015 学习 Xamarin.Forms。当我创建一个 Xamarin.Forms(Android/iOS) 跨平台项目并启动 AVD 时,模拟器工作,但应用程序没有打开。我在 Visual Studio 中没有收到错误。

这只是一个测试:

        public App()
    {
        // The root page of your application
        MainPage = new ContentPage
        {
            Content = new StackLayout
            {
                VerticalOptions = LayoutOptions.Center,
                Children = {
                     new Label {
                         HorizontalTextAlignment = TextAlignment.Center,
                         Text = "Welcome to Xamarin Forms!"
                     }
                 }
            }
        };
    }

【问题讨论】:

  • 能否提供实际代码?
  • 这是一个 vs 模板应用程序。
  • 您是否尝试在真实设备上部署您的应用程序?有时我也有同样的问题,但在真实设备上它可以工作
  • 尝试使用更高api级别的设备。并且能得到vs2015 not logcat的错误信息吗?

标签: xamarin visual-studio-2015 xamarin.android xamarin.forms


【解决方案1】:

经过大量努力,我更新了我的 android sdk 工具,一切都重新开始工作,谢谢大家。版本 25.2.3。

【讨论】:

    猜你喜欢
    • 2018-11-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-30
    • 2014-08-24
    • 1970-01-01
    • 1970-01-01
    • 2022-06-10
    相关资源
    最近更新 更多