1

I am referring to the http://developer.android.com/resources/tutorials/testing/activity_test.html regarding activity testing.

My avd is showing platform-2.3.3 api level-10.

In eclipse when i click on create new android project and select create project from existing source and then browse to the samples\android-8\Spinner it prefill the Min Sdk Version with 3 and when i select the target platform 2.3.3 api level 10 it shows following warning:

The API level for the selected SDK target does not match the Min SDK Version. 

I have checked the spinner manifest file it contains

 <uses-sdk android:minSdkVersion="3"/>

I have tried different combinations like changed the sample folder and changed the target but it shows the same warning.

I want to know how to rectify the warning so that my sample run?

Please help me on this

Sergey K.
  • 24,894
  • 13
  • 106
  • 174
Pankaj Khurana
  • 3,243
  • 10
  • 50
  • 79

2 Answers2

2

min sdk version can be lower than target sdk version.
see this link

Community
  • 1
  • 1
bob
  • 2,674
  • 1
  • 29
  • 46
2

The app uses level 10 sdk I guess and the minsdklevel specified is 3 that is the reason for the warning. This warning can be ignored.

You can run the app on any version of android with level >= 3 as long you dont use any api calls which where introduced in level 10.

Josnidhin
  • 12,469
  • 9
  • 42
  • 61