0

When I compile my project, I am getting this error:

trouble processing java/lang/AutoCloseable.class

Please help me sort this out.

HDJEMAI
  • 9,436
  • 46
  • 67
  • 93
Khyati Chitroda
  • 402
  • 1
  • 4
  • 16
  • Have you tried _Invalid Cache and Restart_ ? Ek var try kari jo @Khyati Chitroda – Piyush May 08 '17 at 08:12
  • yes, but still getting same. – Khyati Chitroda May 08 '17 at 08:22
  • Any other error details? Because as i know it is related with Java 7 – Piyush May 08 '17 at 08:23
  • Error:trouble processing "java/lang/AutoCloseable.class": Error:Ill-advised or mistaken usage of a core class (java.* or javax.*) Error:when not building a core library. Error:This is often due to inadvertently including a core library file Error:in your application's project, when using an IDE (such as Error:Eclipse). If you are sure you're not intentionally defining a Error:core class, then this is the most likely explanation of what's Error:going on. Error:However, you might actually be trying to define a class in a core Error:namespace, the source of which you may have taken – Khyati Chitroda May 08 '17 at 09:02
  • Have you updated JDK version ? After updating use _Invalid Cache and Restart_ – Piyush May 08 '17 at 09:22

1 Answers1

2

Try doing Invalidate cache and restart. This should fix if it is only a build issue.

enter image description here

Shashank
  • 183
  • 1
  • 4