Precautions for installing APK on Android Simulators

Source: Internet
Author: User

Precautions for installing APK on Android Simulators

For example, the steps for installing the APK file on the PC-side Android simulator are also available on the Internet by Google.

I am recording a mistake I made at the beginning, that is, before installing the APK file with the nameline, make sure that the simulator is enabled. Otherwise, the system will always prompt the not device prompt..

 

The following is a detailed method I have reproduced:

1. Install the android simulator on your computer
1. Because the android simulator can only run in the Java environment, download and install Java first. (Skip this step if you already have a Java environment)
Open download page: The http://wmzhe.com/html/view-2473.html selects any download point.
2. download and install the android SDK (including the SDK platform Android 2.2. API 8 and Revision 2 mentioned later ):
Telecom download:
Http://soft1.wmzhe.com/download/android/sdk/android-sdk-windows.zip
Download from China Netcom:
Http://soft2.wmzhe.com/download/android/sdk/android-sdk-windows.zip
After the download is complete, decompress the package to a directory. Example: D: \ Android-SDK-Windows
Then add the full path D: \ Android-SDK-Windows \ tools to the system PATH variable (this step is mainly used for convenient calling when the APK software is installed in the future)
My computer> right-click Properties> advanced> Environment Variables
 

Note:Add
;
No.

3. Configure the android Simulator
Run SDK setup.exe (in the E: \ Android-SDK-Windows Directory)
Error: a folder failed to be renamed or moved.

I tried to disable anti-virus software and found a reliable solution.

1. Run the SDK setup
2. Wait for the error message
3. Disable Anti Virus
4. Install this unlocker program http://download.cnet.com/Unlocker/3000-2248_4-10493998.html
5. Run the unlocker Program
6. Select the tools directory to unlock it
7. Select Yes in the installer.

After unlocking, you can update it again.

Download the selected avaiable packages, as shown in figure


I have also selected SDK 2.2 and SDK 2.1 for installation.

After the installation is complete, returnVirtual Device> New ..

Enter a name for the name item and select android2.1-API level 7 on target,
Enter the size of the SD card in the size field. Select the default size for other options.
Then clickCreate AVD
 
Created successfully! Start

Enter System



2. How to install APK on the simulator1. Run the android simulator, start your Android mobile phone system, and prepare the APK software you need to install.
For example, I put the APK of the mobile phone TV on the D Drive. The file name is dopoolv2.3.player.apk 2. Open the CMD window (Enter cmd in the Start Menu) and enter ADB devices and press Enter. An error occurs: 'adb' is not an internal or external command or a program that can be run.

It turned out to be an environment variable configuration problem. Looking at the folder, we found that there is adb.exe under \ platform-tools, but not under the Tools Folder, pointing the path to platform-tools, then entering ADB, successful !!!
Enter ADB install D: \ dopoolv2.3.player.apk, press enter, and press enter to install the TV program. Go back to the mobile phone system and check that the system is in English by default.Settings-> Language & keyboard-> Select language
Now, all the problems are solved!

Http://jennyaijun.blog.163.com/blog/static/1750146252011529416569/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.