android:项目迁移error:Please change caller according to com.intellij.....

迁移到Android Studio中的项目,在运行时有时会在Event Log中报这种错:

 1 Please change caller according to com.intellij.openapi.project.IndexNotReadyException documentation 

并且右下角还有红色的叹号,非常刺眼。

然后从真机调试换到模拟机运行,依然存在。

虽然不影响编译运行,但是对于有强迫症的人来说简直不能忍。

点击File->Invalidate Cache and Restart,选择Invalidate and Restart ,android studio 会自动编译重启 ,然后就好了好了好了!!!!!

原文地址:https://www.cnblogs.com/blog4wei/p/8945874.html