Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules
生活随笔
收集整理的這篇文章主要介紹了
Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules from cycle [模塊1,模塊2,模塊3] are excluded from annotation processing 異常
原因:
一個項目調用另一個項目的類時候要導入項目依賴
出現這個錯誤就是導入依賴時發生了"套娃"
其實導包的時候發生了循環依賴的情況
A包里導入了B包 同時 B包里又包含了A包
解決:
如果A依賴B,所以要刪除B中的A依賴,留下A中的B依賴。
總結
以上是生活随笔為你收集整理的Error:java: Annotation processing is not supported for module cycles. Please ensure that all modules的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 错误:Subquery returns
- 下一篇: 分享免费天气API