Skip to content

Instantly share code, notes, and snippets.

@deepakpk009
Created October 14, 2019 10:59
Show Gist options
  • Save deepakpk009/6fd67beba1da683cd96a3db0a02ac9ca to your computer and use it in GitHub Desktop.
Save deepakpk009/6fd67beba1da683cd96a3db0a02ac9ca to your computer and use it in GitHub Desktop.
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/libraries and project/.idea/caches
2. Delete ~/.gradle folder.
3. restart it from File > Invalidate Caches/ Restart and click in the Just restart, no need to 'close' it.
If still it does not work then:
1. update the library version in gradle with any random number, and sync.
2. this will show error.
3. revert the change and again sync.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment