你会使用Visual Studio进行Android开发吗?
如果是这样,你将如何设置android SDK而不是。net框架,有任何特殊的设置或配置吗?
你会使用Visual Studio进行Android开发吗?
如果是这样,你将如何设置android SDK而不是。net框架,有任何特殊的设置或配置吗?
当前回答
如果你有兴趣制作HTML5混合应用程序(包装在本地容器中的web应用程序,可以访问设备功能),Nomad Visual Studio扩展支持android设备的构建。
其他回答
自从提出这个问题以来,已经发生了很多变化。Visual Studio 2013更新4和Visual Studio 2015现在已经为Apache Cordova集成了工具,你可以在Android的Visual Studio模拟器上运行它们。
是的,你可以:
http://www.gavpugh.com/2011/02/04/vs-android-developing-for-android-in-visual-studio/
如果你得到“无法找到工具。jar。”你可以添加一个环境变量JAVA_HOME,指向你的Java JDK路径,例如c:\sdks\glassfish3\ JDK(之后重新启动MSVC)
一个更好的解决方案是在Visual Studio中使用WinGDB Mobile Edition:它可以让你在Visual Studio中创建和调试Android项目:
http://ian-ni-lewis.blogspot.com/2011/01/its-like-coming-home-again.html
下载WinGDC for Android http://www.wingdb.com/wgMobileEdition.htm
Android文档:
推荐的方法来开发一个Android应用程序是使用Eclipse与ADT插件…但是,如果您更愿意在其他IDE(如IntelliJ)或基本编辑器(如Emacs)中开发应用程序,则可以这样做。
目前,IntelliJ IDEA和NetBeans有插件,但是您仍然可以使用/tools中的工具来构建、调试、监视、测量和启动模拟器。
您可以使用c#和Xamarin构建丰富的原生应用程序,并将100%的原生api暴露给您。或者使用c++和可以在iOS或Windows上重用的代码来实现最大的性能。
要跟上本文的内容,你需要一份Visual Studio,再加上“使用。net进行移动开发”的工作负载。您可以在第一次安装Visual Studio时启用此功能,也可以从“工具->获取工具和功能…”菜单项中访问它:
Visual Studio安装程序
When testing and running your app you have the choice of doing so with either an Android emulator running on your development machine, or by directly connecting to an existing Android device. There’s no right option here and different developers prefer different form factors. If you choose the former option, you’ll need to ensure once you’ve selected the workload that on the right-hand pane (‘Installation details’) the checkboxes for Intel Hardware Accelerated Execution Manager and Google Android Emulator are selected (as seen above).
这篇文章将帮助你通过visual studio来做基本的android应用程序。我把链接放在下面。
https://developer.okta.com/blog/2018/12/27/build-a-basic-android-app-with-xamarin-and-visual-studio
如果你有兴趣制作HTML5混合应用程序(包装在本地容器中的web应用程序,可以访问设备功能),Nomad Visual Studio扩展支持android设备的构建。