使用Android Studio 導入AOSP源代碼並且indexing完。ide右上角可能拋出警告」Kernel inotify watch limit reached」。shell
打開/etc/sysctl.conf文件,在文件的末尾加入一句話:bash
fs.inotify.max_user_watches = 524288
使用下面命令使改動生效:markdown
sudo sysctl -p
而後從新啓動你的Android Studio就可以了。ide