Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Android source build in eclipse

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?

like image 770
Morison Avatar asked Apr 29 '12 04:04

Morison


1 Answers

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.

like image 91
Yury Avatar answered Sep 22 '22 23:09

Yury