用Xamarin 开发一个微信(ios和android)(1) 准备篇

本文详细介绍了使用Xamarin进行iOS和Android跨平台应用开发的过程,包括安装环境、配置步骤以及基本入门指南。从网络访问、安装Xamarin到创建Android和iOS开发环境,再到使用Xamarin.VisualStudio进行开发,文章提供了全面的技术指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

         最近用xamarin 开发ios和android的项目基本要结尾了,在经过了多半年的努力,还是取得了一定的进展,从开始的不熟悉,对xamarin的各种抱怨,到现在基本把功能开发完毕,心里还是颇为高兴.

既然是总结就从最基本的入手了,这方面最基本的资料就是从xamarin官网学习,里面的文档和论坛足够满足基本的需求了,呵呵, 这个都是英文, 没办法的.

Xamarin 官网

http://xamarin.com/

基本的介绍可以看下我的这篇博文

http://blog.csdn.net/hliq5399/article/details/19162255

好了,基本入门后,我们开始准备开发环境

首先安装xamarin, 需要的步骤如下

注意需要你的网络可以访问google(当然可以翻墙),你可以在官网下载一个总体的安装包,这样安装的过程中,所有需要的东西会自动安装好.

http://xamarin.com/download

在上图的右侧输入有关信息后,就可以下载安装包了

 

然后开始下载,安装即可.注意一定要能访问google了,不然Android的包是没有办法下载的.

如果你不好访问google,那就只能手工安装xamarin了,如下:

It was not possible tocomplete an automatic installation. This might be due to a problem with yournetwork, proxy servers or an unsolvable installation conflict. At this point,you can continue the installation by manually downloading and installing the independentpieces. The list below shows each component that you need to install.

Android SDK

Click here in order to start the Android SDK Managerapplication. In the GUI make sure the following components are installed orselected for installation:

  • Android SDK Tools
  • Android SDK Platform-tools
  • Android SDK Build-tools
  • Android API 7
  • Android API 8
  • Android API 10
  • Android API 12
  • Android API 15
  • Android API 19(现在最新 21也可以安装了)

Once all the required components are selected(you can select others as well, if you wish) start the installation. Click here to open target dir

When the Android SDK installation is finishedyou might want to start the Android Emulator Manager and create as many emulator images as you mightneed for your development. This step can be performed at any time, on anas-needed basis.

GTK#

Download the GTK# v2.12.25 installer to any directory on your disk, double-click thedownloaded file and follow the on-screen instructions.

Xamarin Studio

Download the Xamarin Studio v5.0.1 installer to any directory on your disk, double-click itand follow the on-screen instructions (这个可以不安装,我们一般使用Xamarin.VisualStudio来开发了),

Xamarin.VisualStudio 的地址如下:

XamarinXamarin.VisualStudio

Download the Xamarin v3.0.0 installer to any directory on your disk, double-click itand follow the on-screen instructions.

After installation, restart yourWindows workstation to make sure all of the installed system services arerunning.

 

注意了,安装完毕后,重启机器了.如果你使用vs2013 开发,请安装vs update2及以上版本了.

 

Android需要的环境基本完毕了,但是Ios 还需要一台编译机

这里最方便的就是自己安装一个黑苹果了

这里有我同事的一个下载地址,是最新的苹果OS x Yosemite,地址如下,记得你的设备要足够的内存了,建议8G以上了.

用这个地址下载:链接:http://pan.baidu.com/s/1mgEEo1i密码:lv03

 

好的,基本工作完毕了.

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

似水流年

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值