- Brief introduction
- Why use Mono for Android
- Work reason: Requires a mobile device to access the server.
- Ability Reason: C # program APE, only understand Java, no combat experience.
- It is said to be able to seamlessly integrate with the visual Studio IDE that I am familiar with (post-deployment is complete, but cannot be compiled, then use the Xamarin Studio IDE instead.) ) 。
- Author Machine Environment
- Microsoft Windows 7 x86 Ultimate Edition
- Microsoft Visual Studio Ultimate Edition
- Microsoft. Net Framework 2.0 & 3.0 & 3.5 & 4.0
- Resources
Some of the information is from "Wule bar":http://www.wuleba.com/tag/Mono
- Deploying the development environment
- Components required for the development environment
- JDK 1.6
- Android SDK (this version of Mono for Android seems to recommend using API Level 8)
- Android NDK
- gdk#
- Mono for Android
- Microsoft Visual Studio 2010
- Xamarin Studio IDE
- Installing and configuring various components
- JDK 1.6
Java Program Ape Please ignore this section.
- Get JDK
:
Link:http://pan.baidu.com/s/1nt9a2dN Password:zxrz
- Installing the JDK
The installation process is the same as installing other software processes, and follows the wizard (for example:C:\Program files\java\jdk\1.6\).
- Configuring the JDK environment variables
- system environment variable
- Right-click Computer → Properties, open the following window:
- Click "Advanced System Settings" in the red circle to open the following window:
- < strong> Click the environment variable button in the red circle to open the following window:
&NBSP;
- " Java_home "
jdk Installation path (see 2.2.1.2 installation jdk installation path in
- "Path"
Value:%java_home%/bin;%java_home%/jre/bin;
You need to check if you already have a "path" variable, and if it already exists, click the Edit button to paste the above value into the "path" Variable value header.
- "CLASSPATH"
Value:.; %java_home%/lib/dt.jar;%java_home%/lib/tools.jar
- Android SDK
Android Program Ape Please ignore this step automatically .
- Get the Android SDK
:
Link:http://pan.baidu.com/s/1dDIKngX Password:qakm
- install android SDK
- to extract the "ANDROID-SDK" within the package to an all-English no-space path.
- Windows7 operating system, try not to extract it into the system disk.
d:\android\android-sdk
- Configuring the PATH environment variable
( See 2.2.1.3.1 System environment variables for details )
Value:D:\Android\android-sdk\tools
- Android NDK
Through the subsequent tests, it seemed useless.
- Get Android NDK
:
Link:http://pan.baidu.com/s/18GX8U Password:wtsc
- Installing the Android NDK
Just unzip to a full English no space path. I unzipped to D:\Android\android-ndk.
- GDK #
- Get gdk#
:
Link:http://pan.baidu.com/s/1gdgg4xX Password:1nxa
- Installing gdk#
Follow the wizard to install it.
- Mono for Android
- Get Mono for Android
:
Link:http://pan.baidu.com/s/1mgjufXm Password:efer
- Installing Mono for Android
Follow the wizard to install it.
- Hack Mono for Android
( as a procedural ape, do not advocate the use of cracking, but do not oppose.) The ultimate reason is too expensive. Let's find a cracked trick. )
- get cracked package
link: http://pan.baidu.com/s/1c0ei5o0 3p7x
- usage instructions
If you search for the Niang mono for Android
- copy after decompression "XAPatcher.exe" file to the "C:\Program files\msbuild\xamarin\android" path.
- double-click" XAPatcher.exe "and start
&NBSP;
- Tick VS2010 and Android options, click "Patch me! "button to complete the hack.
&NBSP;
- Endless trouble.
According to the instructions on the Internet, to complete the installation, you can start C # to write Android App . But it's not so good, it's just the beginning of the trouble (maybe I'm a bad character).
- The nightmare begins .
start visual Studio ideandroidf5monodroid does not support running the previous Versionandroid sdk etc, still can't solve. Finally give up.
since visual studio No, then instead use xamarin Studio this tool.
- Xamarin Studio
After a search, the installation package was finally found in the CSDN .
You can also download it from My network disk:
Link:http://pan.baidu.com/s/1hqgKz7Q Password:3a4n
Follow the wizard to install it.
- Nightmare continues
Once installed, it will be upgraded automatically first.
- Hello Android
Quickly created a project, after more rapid Debug, incredibly can, too beautiful.
Then try opening the layout file and look at the design interface. By! Another problem: TheAndroid SDK Tools version is too low to render. Need to be upgraded with SDK Manager .
Let's upgrade it. What's the situation, incredibly slow,1K? Is this going to se years?
Decisive "Google a bit", fortunately found the acceleration program.
- Host File
(Important, otherwise it may not be possible to install the AVD virtual environment) Open the "C:\Windows\System32\drivers\etc" directory to locate the "hosts" file, adding the following configuration:
127.0.0.1 localhost
#Google Home
203.208.46.146 www.google.com
# This line is for the convenience of opening the Android development website Now it seems like no VPN can also be opened
74.125.113.121 developer.android.com
# The updated content is downloaded from the following address
203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com
After saving is turned off, update again.
That's the right rhythm.
- Upgrade again
After upgrading the Android SDK Tools , you need to upgrade the Xamarin.android . But this process is done to Xamarin Studio .
- End
So far, theMono for Android Environment seems to have been built. But it's unclear whether there will be any problems in the future. Can only take one step to calculate one step.