마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

프로젝트생성하자마자 이런에러가...

0 추천
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

 

이게 뭔뜻인가요?

프로젝트생성하자마자 이런에러가...

온통 빨간표시내요
참참참 (3,100 포인트) 님이 2015년 12월 7일 질문

1개의 답변

+1 추천
 
채택된 답변

Source: http://stackoverflow.com/questions/18075343/java-project-in-eclipse-the-type-java-lang-object-cannot-be-resolved-it-is-ind

 

This is an annoying Eclipse Bug which seems to bite now and then. See http://dev-answers.blogspot.de/2009/06/eclipse-build-errors-javalangobject.html for a possible solution, otherwise try the following;

  • Close the project and reopen it.
  • Clean the project (It will rebuild the buildpath hence reconfiguring with the JDK libraries)

    OR

  • Delete and Re-import the project and if necessary do the above steps again.

The better cure is to try NetBeans instead of Eclipse :-)

 

or

 

The following steps could help:

  1. Right-click on project » Properties » Java Build Path
  2. Select Libraries tab
  3. Find the JRE System Library and remove it
  4. Click Add Library... button at right side » Add the JRE System Library (Workspace default JRE)
익명사용자 님이 2015년 12월 7일 답변
참참참님이 2015년 12월 7일 채택됨
...