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

后端 未结 27 1112
[愿得一人]
[愿得一人] 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:48

    I got the same issue cleared using the following steps:

    1. update the library version in gradle to any random number, eg: lib_1.0.0 -> lib_1.0.0.0

    2. gradle sync

    3. sync shows error

    4. revert the version change lib_1.0.0.0 -> lib_1.0.0

    5. gradle sync

    Open the java file with imports to see the error cleared.

提交回复
热议问题