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

  • Home
  • SEARCH
  • 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 6921245
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:15:06+00:00 2026-05-27T10:15:06+00:00

I have 2 projects ( source code) . The project A is the library

  • 0

I have 2 projects ( source code) . The project A is the library uncompiled and the project B uses that library. I want to compile that using ant. I’m using android update to setup like that.

android update lib-project –target 2 –path c:\Android-Build\A

android update project –target 2 –path c:\Android-Build\B –library ..\A

In the libs folder of the project B i don’t have anything. All the libraries i’m using are on the library (A). Using eclipse everything comes out normally.

How can i do that compiling using ant.

ant debug throw errors . The library (A) compiles first ( bin and gen folders are generated).

But when comes to the project B to get compiled cannot find the imports from the library.
How can i tell ant to include the library to the project B during its build proccess? ty.

[javac] C:\Android-Build\B Activity.java:7: error: cannot find
symbol
[javac] import com.a.A;

*UPDATE**


project.properties for project B.

android.library.reference.1=..\\A
# Project target.
target=Google Inc.:Google APIs:13

project.properties for project A.

target=Google Inc.:Google APIs:13

the \\ seems to be correct because if i change it to \ ant cannot find the library

  • 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-05-27T10:15:07+00:00Added an answer on May 27, 2026 at 10:15 am

    Add next line to your A’s project.properties file:

    android.library=true
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'd like to find a few large .NET projects that have public source code
I have a working Android tuner project app that I want to use as
I have been asked to help with a C# project where the source code
I have been looking at the source code of the IronPython project and the
i have a code generator project i would like to offer like open source,
I have been looking through some code on an open source project recently and
I have several small open-source projects that I wrote. All my attempts to find
I have working code using the spring-ws library to respond to soap requests. I
I have three web application projects that share a common library of custom server
I have a bunch of code I am using in multiple projects. Right now,

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.