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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:30:37+00:00 2026-05-22T16:30:37+00:00

I know that I can have Eclipse build for 1.5 and 1.6 SDKs for

  • 0

I know that I can have Eclipse build for 1.5 and 1.6 SDKs for different screen densities if I have the following snippet in AndroidManifest.xml

<supports-screens android:anyDensity="false"/>
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4" />

and if I set up my assets in the following manner in res folder:

/res/drawable-hdpi-v4
/res/drawable-ldpi-v4

My default.properties has the following line:

# Indicates whether an apk should be generated for each density.
split.density=false
# Project target.
target=android-4

This setup allows me to create 1.5 and 1.6 builds in Eclipse IDE, but fails with the following error when I try to do a command line build.

Buildfile: build.xml
    [setup] Project Target: Android 1.6
    [setup] API level: 4
    [setup] WARNING: Attribute minSdkVersion in AndroidManifest.xml (3) is lower than the project target API level (4)
Target "resource-src" does not exist in the project "<project-name>". It is used from target "compile".

This error comes up whether I use build.xml generated by 1.5 SDK or the 1.6 SDK (with -resource-src, -aidl targets).

I think that on commandline the build.xml is defaulting to 1.5 SDK, I dont know any way of making it work with 1.6+ SDKs and would appreciate any thoughts, comments on this.

My goal is have one script that with will compile for all Android SDKs while supporting different screen densities.

Thanks

  • 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-22T16:30:38+00:00Added an answer on May 22, 2026 at 4:30 pm

    Ok, I should have answered this myself a while back considering I solved this issue. The problem here was Google changing the <android-home>/tools/ant/main_rules.xml file which is used for commandline compiles in Android 2.2 I think.

    The answer is simple actually, I just updated my Android SDK to latest and in my build.xml file, I overwrote the targets defined in <android-home>/tools/ant/main_rules.xml that I needed to modify. This is the recommended way according to Google and now all my apps are built from Android 1.5 onwards.

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

Sidebar

Related Questions

I know that you can't have a constructor in an interface, but here is
Using web forms I know that you can only have one ASP.NET form on
I know that __stdcall functions can't have ellipses, but I want to be sure
I recently came to know that in C++ pure virtual functions can optionally have
We all know the effects that lots of thrown exceptions can have over the
I have code that uses jquery.slideup and jquery.slidedown How can i know that div
I have drawn an object on NSView subclass. How can the object know that
I have a query that I know can be done using a subselect, but
Does anyone know do there have any way that I can encrypt the array
As you know, OAuth can support RSA-SHA1 Signature. I have an OAuthSignature interface that

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.