In your AndroidManifest.xml, you can install the min sdk version necessary to use your application with: <uses-sdk android:minSdkVersion="3" />
In the properties of your project, which you define on witch SKD, you will create your application (2.3.1 for you).

In AVD Manager you just need to create different devices for testing, you can create a device for each version of the SDK.
source share