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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:02:06+00:00 2026-06-11T20:02:06+00:00

I am using ant to generate two different builds, dev and production, of an

  • 0

I am using ant to generate two different builds, dev and production, of an android project. To allow us to install both simultaneously on our telephones, I am trying to use two different names: com.xyz.android and com.xyzdev.android

Unfortunately, Eclipse uses this name as a classpath to generate R.java, so all of the imports of com.xyz.android.R break in the dev version, because they should in fact be looking for com.xyzdev.android.R

Is there any way to tell Eclipse to use a specific classpath for R.java?

  • 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-11T20:02:07+00:00Added an answer on June 11, 2026 at 8:02 pm

    I try with following steps:

    created AndroidManifest_dev.xml by coping AndroidManifest.xml and modifying package=”…” , activity etc with absolute class name.

    wrote a ant xml file build.xml:

    <project basedir="." default="copy" name="aa">
        <target name="copy">
            <copy file="./AndroidManifest.xml" overwrite="true" tofile="./AndroidManifest_pro.xml"></copy>
            <copy file="./AndroidManifest_dev.xml" overwrite="true" tofile="./AndroidManifest.xml"></copy>
        </target>
    </project> 
    

    Added a builder in between “Java Builder” and “Android Package Builder”

    Eclipse->project->Properties->Builder->New…->Ant Builder->Buildfile , Browse Workspace…->your project->build.xml->Apply->OK
    Select New_Builder(1) click Up

    Then run the application. It worked.

    Hope this may help you.

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

Sidebar

Related Questions

Im using an ant build file that has been generated by android. Our Android
I am using apache ant to generate javadoc for my project. I have a
An Android app project is using two library projects as dependencies, Each of the
I'm trying to build my project using ANT. My project uses ActionbarSherlock, and Roboguice-Sherlock.
I seem to have hit a snag while building my project using Ant. The
The original title was How to generate enum from properties file using ant? I
basically i am using ant to generate webservice client and server stubs. We don't
I´m busy converting an existing project from an Ant build to one using Maven.
I am using the wsimport ant task of JAX-WS to generate sources based on
I am using FindBugs to generate a report for my application by using Ant

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.