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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:13:53+00:00 2026-06-14T08:13:53+00:00

Trying to get the android UI Testing that comes as part of ADT21 (http://developer.android.com/tools/testing/testing_ui.html)

  • 0

Trying to get the android UI Testing that comes as part of ADT21 (http://developer.android.com/tools/testing/testing_ui.html) to work currently and I seem to be running into some issues.

After creating a test we have to set it up as a uitest-project, the web page tells us the command is:

<android-sdk>/tools/android uitest-project -n <name> -t 1 -p <path>

But this appears to be incorrect and it should be:

<android-sdk>/tools/android create uitest-project -n <name> -t 1 -p <path>

But on running this I get the error:

Error: UI test projects can only target API 16 and above

Which i assume related to the -t parameter, i have then since tried all the values from 1 to 18 (a version of android that doesn’t even exist yet) and it gives me the same error. Anyone figured it out? I assume it is going to be something simple.

  • 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-14T08:13:54+00:00Added an answer on June 14, 2026 at 8:13 am

    The answer was really simple. Examples shows you 1, what the -t actually wants is a target but the id is dependant on the results of running the command:

    android list targets
    

    This command will give you a list of targets you can use with IDs dependant on what you have installed on your system.

    For example on my system i got:


    id: 37 or "android-16"
     Name: Android 4.1.2
     Type: Platform
     API level: 16
     Revision: 3
     Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in
     ABIs : armeabi-v7a, mips, x86
    

    So i use the command

    android create uitest-project -n <name> -t 37 -p <path>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get Android USB host mode to work; but I need
Trying to get the id of the radio button that is checked in android,
I'm trying to get the basics of an Android app that sends and receives
I'm trying to get an Android Alphabet positioning bar to work following an old
I am trying to get my first Android service to work. I have this
I'm trying to get my Android.mk file to optimize the binaries: LOCAL_PATH := $(call
I'm trying to get an Android app to post highscores to Facebook, similar to
I am trying to get into android development, after some reading i have settled
I'm trying to get from an Android Uri to a byte array. I have
I am trying to get current running context in android, I tried to use:

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.