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

后端 未结 27 1207
[愿得一人]
[愿得一人] 2020-11-29 19:22

I\'ve set up my project in Android Studio to use the Square Wire library, as per this question.

Build -> Compile Project works fine.

<
27条回答
  •  广开言路
    2020-11-29 19:46

    Simple Solution

    Go through the link and it worked for me.

    1. Choose File option from menu on left top side of android studio.
    2. Select the option: Invalidate Cache/Restart It will open an dialog.
    3. Click on the first button with option: Invalidate and Restart
    4. It will close Android Studio and restart it. Also, it will start re-indexing the project.

    It resolved my problem

    Go to File > Invalidate Cache/Restart > Invalidate and Restart

    Source here for youtube

提交回复
热议问题