The Android apk file runs on the computer (PC virtual machine) _android

Source: Internet
Author: User

APK is an Android-launched engineering package, and many times we want to run it on a computer rather than on an Android phone. Here's how to run the next Android apk file on your computer.

First you configure the Android environment variable, and if it is configured, it will be easy to install.

You can append to the path of the system variable, or you can append to the path of the user variable, and the difference should be known.

Do not forget to append the English semicolon ";" The value of the environment variable before and after separation. Add the value of the Android environment variable to note that Adb.exe has moved from the tools directory to the Platform-tools directory, and can look at the TXT document under the Tools directory Adb_has_ Moved.txt, many still use the old directory installation can not find the ADB is because of this, so add environment variables to use the new directory Platform-tools instead of the tools directory, for example, my is D:\Android\androidsdk\ Platform-tools, append with ";D: \android\androidsdk\platform-tools".

Configure the environment variable, you can now start the installation, first use AVD Manager.exe to create the virtual machine, and then press start to start the Android virtual machine, do not shut down after startup, open a CMD window CD to the directory you put apk, input: adb install xxx.apk For example, you put qq.apk in D, then in the cmd window input d: Enter, and then input adbinstall qq.apk carriage return, and so on a success will be installed. Now you see if there is QQ in the virtual machine. enjoy!

If there is an error in the installation

There is another way: After starting the virtual machine, download the "APK installer", double-click later. apk package can be installed successfully, download the address is: http://www.jb51.net/softs/57242.html

Note: How to create a new virtual machine and run it under CMD

Under cmd command, enter the Tools folder under the Android SDK installation directory and use the "Android create AVD--name v2.3.3--target 3" to create a v2.3.3 called "AVD" (which can be modified by itself).
Continue to enter the command "EMULATOR-AVD v2.3.3" in the cmd command state, both to start the simulator into the Android phone's analog interface. Do not close this interface.

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.