Compilation error when I try to debug a test although the project builds
已回答
When I click on the green arrow next to the test to debug the test I get the following error:
Error:gradle-resources-test:StorageService_test: java.lang.NoClassDefFoundError: org/apache/tools/ant/util/ReaderInputStream
although the project is building with no issues
请先登录再写评论。
Hello,
Do you face the issue with debug only or also with running tests? Is it possible to provide sample project for investigation?
I am having the same issue, suddenly. I made a minor change in my project, I had this same exception, and whatever I do, I can't make it go away. Invalidate caches/restart doesn't help. Project close/open doesn't help. I'm stuck.
Christine,
Does it help if you run "Refresh" from gradle tool window? Do you face the same issue with Run and Debug?