使用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