C/C++教程

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

本文主要是介绍android studio 报错 External file changes sync may be slow: The current inotify(7) watch limit is too,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

/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

这篇关于android studio 报错 External file changes sync may be slow: The current inotify(7) watch limit is too的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!