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

荒凉一梦 提交于 2019-12-02 23:20:35

Try

File > Invalidate Caches / Restart...

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

File > Invalidate Caches / Restart... option didn't work for me, but

sudo git clean -dfx worked fine

I deleted the .idea folder and that worked for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!