android studio 报错 External file changes sync may be slow: The current inotify(7) watch limit is too low.

/etc/sysctl.d文件夹下新建60-jetbrains.conf文件

sudo touch /etc/sysctl.d/60-jetbrains.conf

编辑文件 写入

# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and
# run `sudo service procps start` or reboot.
# Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
#
# More information resources:
# -$ man inotify # manpage
# -$ man sysctl.conf # manpage
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use

fs.inotify.max_user_watches = 524288

 

命令:sudo sysctl -p --system

重启ide

参考:https://blog.csdn.net/hzjanger/article/details/90213534

posted @ 2022-02-09 22:20  ☆绿茶☆  阅读(718)  评论(0编辑  收藏  举报