This article assumes that you are unfamiliar with building Android on Linux and ready for beginners.
First, why do you want to learn Linux programming?
As we all know, Linux is very important in the actual development of enterprise, most of the servers are built on Linux system. For those of us who are learning Android, the bottom of Android's system is also Linux architecture, so it's self-evident to learn about Android development on Linux. It can be that we are familiar with the simple use of Linux, development, the future to a higher level of greater help.
Android System architecture diagram
Second, how to build the Android development environment on Linux?
2.1 工欲善其事, its prerequisite. Required Software
Virtual machine: WMware workstation_x64
Linux system: Rethat linux_x64
Jdk:jdk7.0_x64.rmp
Android Development Kit: ADT X64.RMP
Because these versions are always changing, so do not attach the official website address, we Baidu a lot, you can go to the official website to see. Try to select the RMP version, which is similar to the. exe file under window to run directly.
2.2 Installation Steps decomposition
1. Build a virtual machine
I directly in D panlong 30G space, and then directly installed WMware, the address assigned to WMware, when prompted to choose the size of the disk recommended 20G, because my disk 1T, I chose 30G.
Then the next step, it's OK.
2. Install the Linux system
After installing the virtual machine, on the home page choose to create a virtual machine, and then select the image file, then the next step is OK, the last prompt error: You have the configured this virtual machines to usea 64-bit guest oper ating system. However, 64-bit operation is not possible. This host was vt-capable, but the VT is disabled.
, to the effect that the x64 processor, does not support virtualization or hardware is not turned on, this simple, restart the machine, and then add into the Bois, find config-cpu, there is a VMware display disable changed to Enable,ok.
Then after installing Linux, the perfect pass.
3. Install JDK, and Android SDK ADT
Copy down the JDK.RMP to the virtual machine (from window to the Linux GUI just copy and paste it), then double-click JDK.RMP to select Install, and she will automatically create a Java file.
Now that you're running Java under the command line, you'll get a bunch of messages, like the one under window, that indicates that the JDK was installed successfully.
The next step is to copy ADT to the Linux system, of course, after the decompression, so you avoid the decompression under Linux, of course, you can also use,unzip Filename.zip
Here, all the tasks are done, no, you are not yet running ADT, this is where you can find the Eclipse shortcut under Eclipse in the ADT directory.
Now write to this, back in the revision, make it more intuitive.