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.