Why can't eclipse resolve class in same package?

后端 未结 17 2136
逝去的感伤
逝去的感伤 2021-01-31 15:56

I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfect

17条回答
  •  别跟我提以往
    2021-01-31 16:21

    Luckily I didn't have 1000's of errors; for my 20+ class resolution problems, what I did was to:

    1. Delete a part of the name of the offending class
    2. Place cursor at the end (of remaining fragment of class' name), do an auto-suggest (Ctrl+space) and choose the correct class from the suggestions
    3. Save

    Tedious but it worked....

提交回复
热议问题