Android Studio 1.4 Development Error Record-constantly updated

Source: Internet
Author: User

Keep track of problems encountered in development and constantly update

1.AVD Simulator boot card on Android interface:

Cause: Manually set the internal storage size.

When creating the simulator internal storage do not modify, otherwise it will not start, even if the start, the volume of the modification does not change.

That is, when the configuration has become such as 1G, actually started up to the adroid system to see the default 200m.

2. Insufficient space: Android AVD internal storage Insufficient

The default space is only 200m, the actual availability of less, installed a few programs is not enough.

Workaround: Capacity expansion

Method 1: Command-line methods

Test result: Not available, it is said that the old version of Android is available

To start with the command line, extend the internal storage to 1G:

EMULATOR-AVD Myemulatorname-partition-size &

Method 2:

See Add internal storage for Android emulator (Internal Storage)

Shell Code
  1. #进入到avd目录下
  2. CD ~/.ANDROID/AVD/NEXUS5
  3. #格式化并重置userdata-qemu.img Size
  4. E2fsck-f userdata-qemu.img
  5. RESIZE2FS userdata-qemu.img 2000M
the operating system should default to E2fsprogs,linux with Yum installed, MAC OS x available port installation (or the other way you like);Cygwin installation is required on Windows. After the above expansion, and then restart the simulator, you will find that the internal storage has been expanded.

3.AVD Installation Path Change

On the computer right-click on the property, select environment variable, then add a new environment variable for the user, the variable name is "Android_sdk_home", and then change the value of the variable to the location where you want to place the ". ANDROID" folder (AVD information)
Log off and re-login to restart emulator.

Android Studio 1.4 Development Error Record-constantly updated

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.