Android Studio 中file.exists() 没有这个方法?

图片说明
但是在eclipse中就没有这样的问题。

应该是有的,除非你有别的同名的file变量,或者定义错了类型,检查下看看。