Android Studio Tips INotify Solutions _android

Source: Internet
Author: User
Tags inotify

Objective

INotify will set "watch handle" for all folders within the project. Unfortunately, the limit for the Linux default watch handle does not meet the actual engineering size, and exceeding the limit will force the IntelliJ to rescan the recursive tree of the project directory (which can be time-consuming).

In order to avoid this problem, we recommend to modify the limit of watches (generally 521k), the following is the specific steps to resolve.

Problem Description:

Using Android Studio to import AOSP source code and indexing, the IDE may throw a warning "Kernel inotify Watch Limit reached" in the upper-right corner.

Workaround:

Open the /etc/sysctl.conf file and add a sentence at the end of the file:

Fs.inotify.max_user_watches = 524288

Use the following command to make the modification effective:

sudo sysctl-p

Then restart your Android studio.

The above is the entire content of this article, I hope the content of this article can be helpful to the friends who encounter this problem, if there is doubt you can message exchange. Thank you for your support to the cloud-dwelling community.

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.