./Mksdcard 2048 M sdcard1./Mksdcard 2048 M sdcard1
This process takes one or two minutes.
Then, open the android SDK and AVD manager and download the corresponding package. The command to open Android SDK and AVD manager is:
Java code
- $ Sudo./android
$ Sudo./android
Select available packages, and then select the package: SDK platform Android 2.0.1, API 6, revision 1 and Google APIS by Google Inc., Android API 3, revision 3. If you cannot select or refresh is not available, create a file named androidtool. cfg in the android-sdk-linux_86 directory with the content: sdkman. Force. Http = true. In the settings option of Android SDK and AVD manager
Force https: //... sources to be fetched using http. Try again. It should be okay.
Next, create a virtual Android device in the tools directory and run the following command:
Java code
- ./Android create AVD-N devicetest-T 2
./Android create AVD-N devicetest-T 2
Devicetest is the name of the android virtual device you want to create.
After that, some settings will be available. You can select one as prompted.
Step 3: Run
In the tools directory, run the command (root permission is required ):
Java code
- #./Emulator @ devicetest-sdcard sdcard1
#./Emulator @ devicetest-sdcard sdcard1
Configure eclipse
After the android SDK is installed, open eclipse and choose help> install new software...
In the open dialog box, work with: Enter the https://dl-ssl.google.com/android/eclipse/ and it will automatically download available plug-ins. Select all the items you need (three in total), click next, and then download and install them.
After the plug-in is installed, the android project appears in window-> preferences. Here, select the location of the android SDK directory that you just downloaded and installed, the development environment you have installed is listed below. Click OK to save the settings.
An android SDK and AVD manager will be added to the window menu. This is the same as the android SDK tool. You can select the development environment here, here we will use it to add a new simulator. In virtual devices, select new, open the create new Android Virtual Device window, name it, select the system running the simulator, simulate the SD card size, and click OK to add a simulator.
In this way, the android development environment under Linux is built.