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

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

    All the answers above didn't work for me. My problem was that i had 3 modules, with 2 of them with the same package name.

    It was ok for android studio <= 3.2.1.

    For android studio > 3.2.1, ressouce was red.

    I solved it like this mention here (i just made differents packages name for each modules ) : Any android Studio version > 3.2.1 show red resource but still compile

提交回复
热议问题