Android Studio inline compiler showing red errors, but compilation with gradle works fine

The following steps helps

  1. Close your project, and in your project folder delete project/.idea
  2. Delete ~/.gradle folder.

Open the project again. Everything should be solved.

Leave a Comment