当我创建新的 Android 应用程序 (Visual Studio) 时,未将对象引用设置为对象的实例 [英] Object reference not set to an instance of an object When I create new Android App (Visual Studio)

查看:19
本文介绍了当我创建新的 Android 应用程序 (Visual Studio) 时,未将对象引用设置为对象的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 2015 中,安装了 Xamarin、Android SDK、jdk 1.7 和模拟器,并且 Xamarin 在工具>选项>Xamarin 中有所有绿色选中的项目.但是当我尝试创建空白应用程序 (Android) VS 时显示错误:

In a Visual Studio 2015, Xamarin, Android SDK, jdk 1.7, and emulator are installed and Xamarin has all green checked items in tools>options>Xamarin. But When I try to create Blank App (Android) VS shows an error:

未将对象引用设置为对象的实例

Object reference not set to an instance of an object

然后新项目创建失败,解决方案资源管理器将为空.

Then new project fail to create and solution explorer will be empty.

我该如何解决?

推荐答案

我通过更新 Android SDK 设置(API 级别 19 和 21)[3rd party] 到 Android SDK 设置(API Level 22)[3rd party] 解决了这个问题视觉工作室设置.

I solved it with updated Android SDK setup (API Level 19 and 21) [3rd party] to Android SDK setup (API Level 22) [3rd party] in Visual Studio setup.

这篇关于当我创建新的 Android 应用程序 (Visual Studio) 时,未将对象引用设置为对象的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆