你会使用Visual Studio进行Android开发吗?
如果是这样,你将如何设置android SDK而不是。net框架,有任何特殊的设置或配置吗?
你会使用Visual Studio进行Android开发吗?
如果是这样,你将如何设置android SDK而不是。net框架,有任何特殊的设置或配置吗?
当前回答
如果你想用c#语言创建一个Android应用程序,你可以使用Xamarin。 他们创造了这个伟大的跨平台开发工具,允许开发者用c#语言开发iOS和Android应用程序。
Xamarin提供了从免费到企业级的不同许可证,但我将使用免费版本的入门版本。它包括Xamarin Studio,这对于那些想要尝试为Android创建第一个应用程序的人来说是一个很好的开始,他们还提供了一个商业许可证,允许你在Visual Studio中开发,这样你就可以使用类似于开发Web应用程序或Windows应用程序的丰富体验,然后他们有这个企业,它包含了一切
其他回答
Android文档:
推荐的方法来开发一个Android应用程序是使用Eclipse与ADT插件…但是,如果您更愿意在其他IDE(如IntelliJ)或基本编辑器(如Emacs)中开发应用程序,则可以这样做。
目前,IntelliJ IDEA和NetBeans有插件,但是您仍然可以使用/tools中的工具来构建、调试、监视、测量和启动模拟器。
如果你有兴趣制作HTML5混合应用程序(包装在本地容器中的web应用程序,可以访问设备功能),Nomad Visual Studio扩展支持android设备的构建。
相信我,我一直在努力寻找一个适合Android开发的IDE,但我失败了。我使用Visual Studio很多年了,对我来说很难适应Eclipse做事的方式。
然而,新的IntelliJ支持Android开发,这是你能得到的最接近的。
您可以使用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
我认为你可以在Visual Studio中打开Java文件,直接使用命令行工具。我不认为你会得到语法高亮或自动补全。
Eclipse实际上与Visual Studio并没有太大的不同,并且有很多设计用于使Android开发更舒适的工具可以在Eclipse中工作。