Some small apps for Android learning

Source: Internet
Author: User

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

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.