Error: Android source build in eclipse
Asked Answered
B

3

7

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?

Bathyal answered 29/4, 2012 at 4:42 Comment(2)
do you have any jar file attached/linkedSpurry
You probably want to point to it for purpose of reference, not add it as a project (ie, that you would build from within eclipse)Inherence
S
11

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.

Stannwood answered 30/4, 2012 at 11:54 Comment(1)
May still have some issues after fixing this. For example, two missing occurences of EventLogTags.java in: ' com.android.providers.calendar com.android.providers.contacts ' More details see here: groups.google.com/forum/?fromgroups=#!topic/android-platform/…Vogt
V
1

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

Vogt answered 6/5, 2013 at 5:51 Comment(0)
W
-1

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

Wynnie answered 29/4, 2012 at 6:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.