Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7746561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:18:37+00:00 2026-06-01T10:18:37+00:00

I have 2 Android library projects. LibraryA and LibraryB . I have a project

  • 0

I have 2 Android library projects. LibraryA and LibraryB.

I have a project called project1 which needs to reference classes and stuff that are in LibraryA and LibraryB.

I am using the auto generated Ant script inside eclipse to build all the projects. Note: that i have removed all other builders from each of the projects and only using the Ant builder.

When i run the build script for project1 with the following targets “clean,debug”, eclipse's console says BUILD SUCCESSFUL. HOWEVER, if i look at the code inside eclipse there are lots of error lines and x’s in the code saying that the imports cannot be resolved and numerous other errors. Basically it is telling me the references to the library projects is not there. It is also telling me the R's cannot be resolved either.

I thought ADT17 was going to fix this issue but it still persists. Am i doing something wrong? How can i solve this issue, so that eclipse allows the references and everything builds fine?

Running the application on the phone is working.


# The project.properties file for project1
target=android-10
android.library.reference.1=../LibraryA
android.library.reference.2=../LibraryB

I have a dirty fix that solves this problem, but i would like a much cleaner solution that is automatic and does not require editing the auto generated build.xml that android generates. It seems like this type of thing should be working out of the box.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:18:39+00:00Added an answer on June 1, 2026 at 10:18 am

    I figured out the problem. gen was not included as a src folder for the project. Once i included gen as a source folder all the R references started working.

    I do NOT have the jars in my libs folder for the project.

    My “dirty solution” i mentioned earlier is adding a post-compile target and taking the classes.jar that is generated during build and renaming it to "TheProjectName".jar and then the project will see the jar file references.

    The “dirty solution” is what i was doing pre-ADT17 and was hoping to avoid in ADT17, but it seems like this issue is still not resovled. If anyone has any suggestions on how to fix that problem, please let me know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a library-only Android eclipse project (no main class, only library classes) that
I have an Android project that depends on an android library (apklib) project. The
I have an Android Project(A) that's my main application, it references an Android library
I have two projects: 1- Project A: Which is the Android app project. 2-
First to explain how projects are setup: Android Library project with two classes: UserActivity
I have 3 projects in Eclipse Helios. A (java project) B (Android library project)
I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do
In my android application I have created 2 projects. The main project and a
I have a project in Eclipse that I use as a library (I export
I have 2 projects: 1 - Android Native project 2 - C/C++ Project I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.