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 7507809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:33:38+00:00 2026-05-29T22:33:38+00:00

I followed some steps I found here (can’t find the URL right now, sorry)

  • 0

I followed some steps I found here (can’t find the URL right now, sorry) to convert my Android project in Eclipse to a layout where 99.9% of my code is in a library project, and then I have 2 other shell projects under the same workspace that are mostly just the AndroidManifest.xml files, and a few resource files. This was done so I can support 2 builds of the same project, with just some minor text/icon changes between the 2. The application name is also different so I can publish both on the Android Market at the same time.

Ever since I did this, about every 10 times I compile, maybe once every day or two, I get “dalvik error 1” and something about “Access already exists” (Access being the name of the first Java unit in my library project).

To “work around” the issue I go in to the Java Build path for my stub-project that I am trying to build, and remove the JAR file from my main library from the libraries tab. Then I can build without the error.

Then a while later (maybe 1 or 2 days) I’ll get an error about missing classes when I compile my stub-project (not my library). So I’ll go back to the Java Build path and put the reference to the JAR file back in, and all is good again for 1 or 2 days, then I’m back to the same error as before.

Is this just a known issue and something I need to do, or can I resolve by a restructure of my projects/workspaces? Currently I have:

Lib Project – only has 2 libs on build path: Android 2.1 and com.android.ide.eclipse.adt.LIBRARIES

First stub project that uses above lib – has the same 2 libs as above project, plus sometimes I use “Add JAR” to include the JAR from the above project’s bin\ folder.

2nd stub project – same libs as first stub project

Should I reference the JAR from my “lib project” using one of the other tabs under build path options? Maybe the “Project” tab instead, or the “Source” tab? I don’t currently have it under any of those other areas.

When I get in to the weird state, doing a “Clean project” also doesn’t help, I’ve tried that several times and open/close the IDE between cleaning, to no resolve.

At this point we are in the final testing stages, so my normal daily task is:

  1. Make a minor update (bug fix) in the LIB project

  2. Use the publish wizard to export both projects and update Android Market and other places we keep the APK files

So I’d like those steps to stay simple, without having to open/close multiple workspaces or go through a lot of build steps if possible.

  • 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-29T22:33:38+00:00Added an answer on May 29, 2026 at 10:33 pm

    The classical Eclipse/Java way

    Add a (workspace) library

    • Right click the project you want to insert in.
    • Click Properties.
    • Select Java Build Path.
    • Select the Libraries tab.

    Now, it depends how you compile your library.
    So either do an Add JARs... or an Add Class Folder.
    Choose the external variant to use an external source.
    That’s it.

    Add a workspace project

    • Right click the project you want to insert in.
    • Click Properties.
    • Select Java Build Path.
    • Select the Projects tab.

    Click Add... on the right side and you are done.

    The additional Android way

    Two steps are necessary:

    • Mark the project you want to use as library project
    • Reference the marked project

    Mark the library project

    Right click your project and select Properties.
    Select Android on the left and tick the checkbox IsLibrary. Done.

    Reference the marked project

    Right click your project and select Properties.
    Select Android on the left and Add... your marked project. It will be added to the list and is ready to use. Now you are able to access all classes and ressources (e.g. drawables, strings) from the referenced, marked project. Awesome, eh? 🙂

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

Sidebar

Related Questions

So I've followed the steps mentioned here: http://zxing.googlecode.com/svn/trunk/iphone/README And I made sure everything is
I recently followed some instructions with RVM to install ruby-debug and I think it
I'm trying to use ASP.net profiles I've followed some instructions which means I have
I am working on Windows Azure. I followed some tutorial about how to store
I really don't know much about Apache, I followed some tutorials and installed the
I am trying to make my application device administrator , i followed some notes
I want to build a workspace with subversion, and I followed some tutorials; Install
The following is a mySQL query containing the initial query followed by some additional
My string is: (some text followed by) User 'Mr.G@rr!s0n' is the admin . I
I ran across some routes that followed this format: resources :foobar, except: create I

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.