Xamarin Mono For Android 4.12 安裝、破解

來源:互聯網
上載者:User

原文:http://hi.baidu.com/hegel_su/item/2b0771c6aaa439e496445252?qq-pf-to=pcqq.group

一、Windows下面的安裝

1. 安裝環境介紹:

    Win8.1 企業版64位、VS2013,mono-android-4.12.02001,下面的安裝過程都是在VS2013已經安裝成功之後的操作,本次破解支援vs2013中文。

2. 安裝jdk

   到oracle官方下載jdk-6u45-windows-i586.exe並安裝

   添加環境變數JAVA_HOME

  C:\Program Files (x86)\Java\jdk1.6.0_45

   添加環境變數CLASSPATH

  .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar

   修改環境變數Path,在最前面加入以下值:

  .;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

3. 安裝Android SDK,下載installer_r22.6.2-windows.exe,我這裡是安裝到D:\Develop\Android\android-sdk目錄下

   也可以到網上下載離線包,直接解壓到D:\Develop\Android\android-sdk即可,解壓後再重裝安裝最新版的installer_r22.6.2-windows.exe

   安裝完後設定環境變數,右鍵我的電腦——屬性——進階系統設定——進階——環境變數——系統變數裡,找到 Path,雙擊進行修改,在最前面增加:

  D:\Develop\Android\android-sdk\tools;D:\Develop\Android\android-sdk\platform-tools;

  (注意末尾必須有 ; 英文分號,如果 Path 裡面已經有這個值,就不需要添加,如果是安裝到其它目錄,則對應修改路徑即可)

4. 依次下載並安裝以下軟體:

   1)gtk-sharp-2.12.25.msi

   2)XamarinStudio-4.2.3.60-60.msi

   3)XamarinInstaller.exe,自動安裝NDK、Android和iOS外掛程式(也可以採用手動安裝的方式依次安裝)

5. 全部弄完之後,最好重啟電腦

6. 下載windows下面的破解補丁:

    http://www.myuplbox.com/file/download/1052689

    1)破解Android:複製mandroid.exe 到 %PROGRAMFILES(x86)%\MSBuild\Xamarin\Android

    在cmd命令裡切換到%PROGRAMFILES(x86)%\MSBuild\Xamarin\Android目錄下運行以下命令進行註冊:

    mandroid.exe --activate --activation-name=b4a --activation-phone=b4a --activation-company=b4a --activation-code=b4a --activation-email=b4a

    檢查是否註冊成功

    運行命令:mandroid.exe --entitlements > "%temp%"\mfa.txt

      再運行命令:type "%temp%"\mfa.txt

    如果出現類似於 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx MonoAndroid Priority2014-08-26T05:52:36"的形式則表明註冊成功。

    2)破解iOS:複製 mtouch.exe 到 %PROGRAMFILES(x86)%\MSBuild\Xamarin\iOS

    在cmd命令裡切換到%PROGRAMFILES(x86)%\MSBuild\Xamarin\iOS目錄下運行以下命令進行註冊:

    mtouch.exe --activate --activation-name=b4a --activation-phone=b4a --activation-company=b4a --activation-code=b4a --activation-email=b4a

 

附部分原版程式:

http://download.xamarin.com/Installer/Windows/XamarinInstaller.exe

http://dl.google.com/android/installer_r22.6.2-windows.exe

http://download.xamarin.com/GTKforWindows/Windows/gtk-sharp-2.12.25.msi

http://download.xamarin.com/studio/Windows/XamarinStudio-4.2.3.60-60.msi

http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.12.02001.msi

http://download.xamarin.com/MonoTouchforVisualStudio/Windows/Xamarin.iOS_Setup-1.10.47.0.msi

http://dl.google.com/android/ndk/android-ndk-r8d-windows.zip

 

附Android SDK開發包國內:

http://www.cnblogs.com/bjzhanghao/archive/2012/11/14/android-platform-sdk-download-mirror.html

部分原版地址來源於以下內容:

http://xamarin.com/installer_assets/v3/Windows/Universal//InstallationManifest.xml



二、Mac下面的安裝

1.      安裝max,這方面就不多說了,參考文章

    http://hi.baidu.com/hegel_su/item/421ee407956898b03c42e20e

    安裝xcode的步驟也在上面這篇文章裡了,注意,如果要用mac下面的模擬器,則只能裝5.0.2的xcode,如果只用真機調試,則可以裝5.1的xcode

2.      安裝Xamarin,到官方網站下載線上安裝程式XamarinInstaller.dmg進行全自動安裝,安裝過程中要下載很多檔案,所以此步會有點漫長,等待自動安裝完成,自動安裝程式:

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

3.      自動安裝後的版本是沒有破解的,而且是比較舊的版本,接下來我們要下載破解的對應版本,下載下面所有連結的檔案,並依次序進行安裝:

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

    2)http://download.xamarin.com/studio/Mac/XamarinStudio-4.2.3.60-60.dmg

    3)http://download.xamarin.com/MonoTouch/Mac/monotouch-7.0.7.2.pkg

    4)http://download.xamarin.com/MonoforAndroid/Mac/mono-android-4.12.1-0.pkg

    再下載破解檔案:

    http://www.myuplbox.com/file/download/1052690

    破解步驟如下:

    a) replace mtouch in /Developer/MonoTouch/usr/bin/

    b) replace mandroid in /Developer/MonoAndroid/usr/bin/

    c) 在命令列下執行:sudo chmod a+x /Developer/MonoAndroid/usr/bin/mandroid

   d) Run in Cmd:/Developer/MonoAndroid/usr/bin/mandroid --activate --activation-name=b4a --activation-phone=b4a --activation-company=b4a --activation-code=b4a --activation-email=b4a

    e) Run in Cmd:/Developer/MonoAndroid/usr/bin/mandroid --entitlements

     如果輸出類似於 "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx MonoAndroid Priority2014-08-26T05:52:36" 則表示成功

   f) execute: /Developer/MonoTouch/usr/bin/mtouch --activate --activation-name=b4a --activation-phone=b4a --activation-company=b4a --activation-code=b4a --activation-email=b4a

部分源地址參考:

http://xamarin.com/installer_assets/v3/Mac/Universal//InstallationManifest.xml


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.