java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream vaadin+gradle+intelliJ

后端 未结 4 1896
眼角桃花
眼角桃花 2021-02-03 17:54

I have been working fine with Vaadin + Gradle + IntelliJ until yesterday night when I introduced SLF4J(logback) logging to my application. Since then I can\'t make

4条回答
  •  迷失自我
    2021-02-03 18:39

    File > Invalidate Caches / Restart... nor did git clean -dfx. Here is what I had to do:

    1. Close IntelliJ
    2. IMPORTANT: Make sure you have everything commited you care about (you're about to clean your working copy)
    3. Run git clean -dfx to clean your working copy
    4. Run IntelliJ
    5. Select Import Project
    6. Navigate to the directory containing your project
    7. The select Import project from external model and select Gradle
    8. Press Next
    9. Make sure the settings on the next page look ok then press Finish
    10. The build should now hopefully work

提交回复
热议问题