Error in Eclipse (for Android): The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files

前端 未结 2 927
滥情空心
滥情空心 2021-01-11 10:58

I am trying to run an Android project that someone else has created. I have opened the project in Eclipse as:

File --> New --> Project --> Android P         


        
2条回答
  •  长情又很酷
    2021-01-11 11:57

    Do one more step before running:

    Right Click(Project) -> Properties -> Java Build Path -> Libraries -> 
                                              Add Library -> Select the Java Library
    

    Click OK and then clean-build (Project -> Clean & Project -> Build All or Ctrl+B) your project. It should be fine.

提交回复
热议问题