This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cannot select ‘Test Target’ in a new Android Test Project

 
Nidhi Sar
Ranch Hand
Posts: 252
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to build a new Android Test project, following along with Hello Testing Tutorial on the android dev site. http://developer.android.com/resources/tutorials/testing/helloandroid_test.html

The problem is that when I do File--> New--> Project-->Android Test Project, the screen that comes up does not let me select a test target.

There is a block that says the following:-


--------------------------------------------------------------------------------
Test Target:
Select the project to test:

--------------------------------------------------------------------------------

But there are no listed projects so there is no way I can select a target project.

I know that while creating a new Android project I can create a test project for it too. But how do I create a test project for an existing application?

Anyone run across this problem or know how to solve it?
 
Shawn Franks
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nidhi Sar wrote:I am trying to build a new Android Test project, following along with Hello Testing Tutorial on the android dev site. http://developer.android.com/resources/tutorials/testing/helloandroid_test.html

The problem is that when I do File--> New--> Project-->Android Test Project, the screen that comes up does not let me select a test target.

There is a block that says the following:-


--------------------------------------------------------------------------------
Test Target:
Select the project to test:

--------------------------------------------------------------------------------

But there are no listed projects so there is no way I can select a target project.

I know that while creating a new Android project I can create a test project for it too. But how do I want to create a test project for an existing project?

Anyone run across this problem or know how to solve it?



You should be able to just go to create File > New> Android Project > Create Project From Existing Source, and then browse to the test files in the SDK directory
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic