Android Studio 3.0 beta2 First Invalidate caches and restart, then clean the project and rebuild it .hope it helps.