Compilation error when I try to debug a test although the project builds

Answered

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

 

0
3 comments

Hello,

Do you face the issue with debug only or also with running tests? Is it possible to provide sample project for investigation?

 

0

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. 

0

Christine,

Does it help if you run "Refresh" from gradle tool window? Do you face the same issue with Run and Debug?

0

Please sign in to leave a comment.