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

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

    For me, I refer a jar in a module library. It cannot resolve the symbol in the jar. So I find the solution for my situation. Use the provided way.

    provided fileTree(include: ['xxx.jar'], dir: '../moduleX/libs')
    

提交回复
热议问题