Cannot resolve symbol with AutoValue and IntelliJ

后端 未结 3 1319
温柔的废话
温柔的废话 2021-02-14 08:45

I have been trying to find the correct settings for IntelliJ\'s annotation processing in order for it to co-exist with Gradle\'s build process.

Whenever I build from Int

3条回答
  •  我在风中等你
    2021-02-14 09:39

    The answers are (should be) in the README for the gradle-apt-plugin: https://github.com/tbroyer/gradle-apt-plugin

    Namely, also apply the net.ltgt.apt-idea plugin.

    Btw, I recommend delegating build/run actions to Gradle in IntelliJ. Sure it's a bit slower, but requires zero setup in the IDE and works reliably. That said, it should also work OK if you don't.

提交回复
热议问题