2

I've updated my intellij to 2017.2.5 and imported all the projects. For some reason, declaration and constructors show some error with Strings. e.g. private String type = "abc"; and name = " xyz"; Error asks me to change it to java.lang.string as a solution.

Jdk is up to date. libraries are up to date, so what is the problem? Project structure looks ok. How do I fix this?

enter image description here

2
  • Post all code and errors here directly as text. Commented Nov 21, 2017 at 0:52
  • Awesome! Thanks, @hnefatl . Solution worked. Commented Nov 21, 2017 at 0:55

1 Answer 1

3

Just delete the line:

import org.apache.xpath.operations.String

This is causing a type conflict between java.lang.String (what you want) and an Apache class (which you probably don't want).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.