Android Studio showing red alerts while gradle compile succeeds
This can happen when you change your gradle distribution. Clean build does succeed but the IDE still shows some missing import. One solution from Android Studio: Go to File | Invalidate Cache/Restart | Invalidate and Restart