简体   繁体   中英

How to add Android X.X in Project -> Properties -> Java BuildPath

I think the title is very clear. Sometimes I have some build errors, and in the Libraries tab of Java Build Path , I add/remove libraries, etc ... but when I delete the Android XX "folder", I can't bring it back. What I do is to delete the project from the Workspace and Import it again as Existing Android Project .

  1. Is there a way to add it directly without deleting-importing a project?
  2. How does eclipse generate it? for what purpose? Why if missing eclipse doesn't show errors before building?

Please help me understand all these!

Yes you can do that without removing the project and importing it back.

Right Click your Project-> Java Build Path->Add Library->Android Classpath Container->Choose your Project->Ok

You will your Android XX back.

Hope it helps.

当您删除项目时,单击删除磁盘上的项目内容的复选框,然后导入您的项目并添加库转到属性-> java 构建路径-> 排序和导出并检查您的库

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM