您的位置:首页 > 其它

Xamarin安装信息

2016-04-19 10:34 274 查看
一、Mac下的安装:

1. 安装XCode,这方面就不多说了,开发Xamarin必须装XCode,XCode可以直接到AppStore上下载安装,免费的,装完之后先运行一下XCode,第一次运行需要初始化组件,完成之后再在终端里输入以下命令完成tools的安装:xcode-select --install
2.Xamarin自动安装包的下载地址:

http://download.xamarin.com/Installer/Mac/XamarinInstaller.dmg

因为自动安装包要下载许多东西,需要翻墙这儿直接 把手动安装的地址贴上

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

Mono Framework

(http://download.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-4.2.3.4.macos10.xamarin.x86.pkg)

Download the Mono Framework v4.2.3 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.

Java SDK

Mac OS X uses its own version of Java and in order to install it you need to start the terminal app and type the following command:javac -versionAfter typing it you should see a Mac OS X system popup which will guide you to install the Java software.

Android SDK

(http://dl.google.com/android/android-sdk_r24.4.1-macosx.zip)

Download the Android SDK for Mac OS X version 24.4.1, open the downloaded archive and copy the contents of the folder found at its root directory (most probably named android-sdk-macosx) to the /Users/decheng/Library/Developer/Xamarin/android-sdk-macosx directory.

Click here in order to start the Android SDK Manager application. In the GUI make sure the following components are installed or selected for installation:

• Android SDK Tools

• Android SDK Platform-tools

• Android SDK Build-tools

• Android API 15

• Android API 19

• Android API 21

Once all the required components are selected (you can select others as well, if you wish) start the installation.If you cannot see /Users/decheng/Library/Developer/Xamarin/android-sdk-macosx in Finder please click here to reveal the directory in Finder.

http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin

Download the Android NDK for Mac OS X version r10e, open the downloaded archive and copy the contents of its root directory (most probably named android-ndk-r10e) to the /Users/decheng/Library/Developer/Xamarin/android-ndk directory.

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

Xamarin Studio

(http://download.xamarin.com/studio/Mac/XamarinStudio-5.10.3.27-0.dmg)

Download the Xamarin Studio v5.10.3 archive to any directory on your disk, double-click it and then drag and drop the Xamarin Studio icon to the Applications folder.

Xamarin.Android(开发安卓才装)

(http://download.xamarin.com/MonoforAndroid/Mac/mono-android-6.0.2-1.pkg)

Download the Xamarin.Android v6.0.2 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.

Xamarin.iOS(开发苹果手机才装)

(http://download.xamarin.com/MonoTouch/Mac/monotouch-9.6.0.0.pkg)

Download the Xamarin.iOS v9.6.0 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.

Xamarin.Mac(开发苹果电脑程序才装)

(http://download.xamarin.com/XamarinforMac/Mac/xamarin.mac-2.4.1.7.pkg)

Download the Xamarin.Mac v2.4.1 archive to any directory on your disk, double-click it and follow the instructions on screen. Please accept all the defaults during the installation, including the target drive.

二、Windows下面的安装

1、现在各种组件已集成在VS2015了,在线安装就行。有一个地方是需要注意的,就是Android SDK,在安装完VS2015后到C盘下检查C:\Program Files (x86)\Android\android-sdk 打开SDK Manager.exe 进行下载更新,结果老是

链接状态无反应。



由于sdk在C盘中,所以需要设置“C:\Program Files (x86)\Android\”这个目录的权限为可写才行,否则会报错的;

3:打开android sdk manager=》tool=》options,如图所示



设置Http Proxy Server为mirrors.opencas.org Http Proxy Port:80 如果你的机器还是下载不行的话请选择下面列表中其他的服务及端口尝试:

Android SDK在线更新镜像服务器

1. 中国科学院开源协会镜像站地址:

w IPV4/IPV6: http://mirrors.opencas.cn 端口:80

w IPV4/IPV6: http://mirrors.opencas.org 端口:80

w IPV4/IPV6: http://mirrors.opencas.ac.cn 端口:80

2. 上海GDG镜像服务器地址:

http://sdk.gdgshanghai.com 端口:8000

3. 北京化工大学镜像服务器地址:

w IPv4: http://ubuntu.buct.edu.cn/ 端口:80

w IPv4: http://ubuntu.buct.cn/ 端口:80

w IPv6: http://ubuntu.buct6.edu.cn/ 端口:80

4. 大连东软信息学院镜像服务器地址:

http://mirrors.neusoft.edu.cn 端口:80

设置好服务及端口后将Others中的Force https://...sources to be fetched using http://...复选框勾上【勾选原因:改为强制http请求,而非https请求,加快下载速度。】
5.看下最终效果:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: