1. Install HAXM (KVM) to accelerate Android virtual machine running speed
This is the installation method
Chinese description
2. Appearance
Error:execution failed for task ': App:compiledebugaidl '.
> Aidl is missing
Error, workaround
Just change the version of the build tool to do it:
1) Select the project root directory app on the left, press F12 to open Project Structure;
2) Click on the app at the bottom to change the right build Tool Version from 23.0.0 to 22.0.1.
3, under Ubuntu View CPU support does not support 64-bit system
# Cat/proc/cpuinfo | grep flags | grep ' LM ' | wc-l
8
(The result is greater than 0, indicating support for 64bit calculations. LM refers to long mode, which supports LM is 64bit)
4. The Android Simulator works best on 64-bit systems
If your Linux machine is 32-bit, you will get an error when running the Android emulator as follows:
Error:32-bit Linux Android Emulator binaries is DEPRECATED, to use them you'll have to do at least one of the followin G:-Use the '-force-2bit ' option when invoking ' Emulator '. -Set android_emulator_force_32bit to ' true ' in your environment. Either one would allow your to use the 32-bit binaries, but please be aware that these would disappear in a future Android SD K release. Consider moving to a 64-bit the Linux system before that appens.
The Android Simulator works best on 64-bit systems, so the best solution is to reinstall the 64-bit Linux system, and if you are having trouble installing the system temporarily, there are two ways to solve it:
1. In the project you want to run right-click->run as, run configuration->android application-> emulator, scroll bar to the end, find the commandline input box, enter "- Force-32bit ", then apply.
2. Configure environment variables, plus android_emulator_force_32bit=true
Some small apps for Android learning