How to run the Android APK file on a computer (PC virtual machine)

Source: Internet
Author: User

APK is a project package released by the Android system. Many times we want to run it on a computer rather than on an Android phone. The following describes how to run the Android APK file on a computer.

First, you must configure the android environment variables. If configured, the installation will be very convenient.

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

Do not forget to use the Semicolon ";" to separate the values of environment variables before and after appending. Because the adb cannot be found during installation in the old directory, the new directory platform-tools instead of the tools directory should be used to add environment variables. For example, my directory is D: \ Android \ androidsdk \ platform-tools. "; D: \ Android \ androidsdk \ platform-tools" is used for append ".

After environment variables are configured, you can start the installation. First, use AVD Manager.exe to create a virtual machine, and then press start to start the android Virtual Machine. Do not disable it after startup, open a cd in the cmd window to the directory where you put the apk. Enter adb install xxx.apk. if you put the qq.apk on disk d, enter d: enter in the cmd window, enter adbinstall qq.apk and press Enter. After that, success will be installed. Now you can see if QQ has appeared in the virtual machine. Enjoy!

If you have already installed it, an error occurs.

There is also a way: after starting the virtual machine, download unzip apkinstaller hosts, to double after .apk package can be installed successfully, is: http://www.jb51.net/softs/57242.html

Note: how to create and run a VM in cmd

In the cmd command status, go to the tools Folder under the android SDK installation directory, and use "android create avd -- name v2.3.3 -- target 3" to create a file named "v2.3.3" (you can modify it yourself).
Run the command "emulator-avd v2.3.3" in the cmd command status to start the simulator and enter the Android phone simulation 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.