Error: Android source build in eclipse

拜拜、爱过 提交于 2019-11-29 14:55:12

问题


While trying to add android source to eclipse, I am getting the following errors.

Project 'android' is missing required library: 'out/target/common/obj/JAVA_LIBRARIES/gsf-client_intermediates/javalib.jar'
Project 'android' is missing required library: 'out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar'

FYI, I have built the source successfully with full_maguro-userdebug configuration (for Galaxy Nexus) before adding this to eclipse. Since I couldn't find "create project from existing source" in Eclipse Indigo, I changed the location of the project to the root directory of the source. I refreshed the project several times with same error.

How to solve this issue?


回答1:


You should go to Project -> Properties -> Java Build Path.

There open tab Libraries.

In this tab out/target/common/obj/JAVA_LIBRARIES/google-common_intermediates/javalib.jar should be changed to out/target/common/obj/JAVA_LIBRARIES/android-common_intermediates/javalib.jar by selecting javalib.jar from google-common_intermediates, pressing Edit and selecting instead android-common_intermediates.

Entry with gsf-client_intermediates javalib.jar can be simply deleted.




回答2:


A more comprehensive answer at here: https://groups.google.com/forum/?fromgroups=#!topic/android-platform/XIbR8ZKe7Tw




回答3:


I would not recommend using eclipse for android source. Android is not a single project and it too big for an IDE like eclipse to handle.

Use simpler plain text editors like vim, emacs to browse the code



来源:https://stackoverflow.com/questions/10369741/error-android-source-build-in-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!