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.