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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:01:38+00:00 2026-05-23T15:01:38+00:00

I have an android lib project, and an android test project i’ve built in

  • 0

I have an android lib project, and an android test project i’ve built in eclipse.

Now i’m automating the process and i encounterred a problem when trying to run the tests using ant.

When i run the “run-tests” target of the test project, It claims the lib project does not have “install target”.

C:\Code4\Main\AndroidMyAppLibTest>ant run-tests
Buildfile: C:\Code4\Main\AndroidMyAppLibTest\build.xml
    [setup] Android SDK Tools Revision 11
    [setup] Project Target: Android 2.3.3
    [setup] API level: 10
    [setup]
    [setup] ------------------
    [setup] Resolving library dependencies:
    [setup] C:\Code4\Main\AndroidMyAppLibTest: ../AndroidMyAppLib => C:\Code4\Main\AndroidMyAppLib
    [setup] C:\Code4\Main\AndroidMyAppLibTest: ../AndroidMyAppMocksLib => C:\Code4\Main\AndroidMyAppMocksLib
    [setup] C:\Code4\Main\AndroidMyAppMocksLib: ../AndroidMyAppLib => C:\Code4\Main\AndroidMyAppLib
    [setup] ------------------
    [setup] Ordered libraries:
    [setup] C:\Code4\Main\AndroidMyAppMocksLib
    [setup] C:\Code4\Main\AndroidMyAppLib
    [setup] ------------------
    [setup]
    [setup]
    [setup] Importing rules file: tools\ant\test_rules.xml

-install-tested-project:
    [setup] Android SDK Tools Revision 11
    [setup] Project Target: Android 2.3.3
    [setup] API level: 10
    [setup] Project Type: Android Library
    [setup]
    [setup] ------------------
    [setup] Resolving library dependencies:
    [setup] No library dependencies.
    [setup]
    [setup] ------------------
    [setup]
    [setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.
    [setup]
    [setup] Importing rules file: tools\ant\lib_rules.xml
Duplicated project name in import. Project android_rules defined first in C:\eclipse\android-sdk_r11-windows\android-sdk-windows\tools\ant\main_rules.xml and again in C:\eclipse\android-sdk_r11-windows\android-sdk-windows\tools\ant\lib_rules.xml

BUILD FAILED
C:\eclipse\android-sdk_r11-windows\android-sdk-windows\tools\ant\test_rules.xml:51: The following error occurred while executing this line:
Target "install" does not exist in the project "AndroidMyAppLib".

I didn’t expect the lib to be installed, (it’s a lib not an apk) but the android_rules tries to intall it and fails.

Do i need to configure something special for test targets that test libs and not apps?

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-23T15:01:39+00:00Added an answer on May 23, 2026 at 3:01 pm

    There’s a description of how to achieve this here:

    http://www.paulbutcher.com/2010/09/android-library-project-with-tests-step-by-step/

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

Sidebar

Related Questions

I have Android pet-project DroidIn which utilizes HttpClient 4 (built into Android) to do
I have a Android project for SDK1.5 and now I want to convert it
I have an Android project that loads a custom .so lib. I'm having trouble
I added a jar file to the lib folder in android project in Eclipse
I have a project (in Eclipse) which I've turned into an Android Project Library
I have an Android project that branched into three different applications, app-1 , app-2
I am trying to create and use jar file in an Android project under
I have successfully built VLC for Android on Ubuntu machine by instructions of the
I have a compiling problem. I followed tutorial about Hello world program for Android
I have a problem with socket send (or write) function on android. There is

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.