Search code examples
javaandroideclipseandroid-4.2-jelly-bean

How to target Android 4.1 Jelly Bean in Eclipse


I am new to Android development, I just got Eclipse for the first time a few days ago. I've made a simple app in Eclipse which I've got running through the emulator, but it's pointed at Android 4.3.

In Eclipse I've gone to Window -> Android Virtual Device Manager -> Edit, but the only "Target" in the list is Android 4.3 - API Level 18. I am using Nexus 4 as the device to emulate.

I've Googled (and Stackoverflow'd!) around for this to no avail. I haven't seen any articles which clearly outline what needs to be done to get Android 4.1 to appear in that list, and if there are any steps afterwards that I need to follow.

Do I need to download anything; is it just a configuration thing?

Any advice would be much appreciated. Thanks.


Solution

  • You need to install the SDK packages for the versions you want to target. Open the Android SDK Manager from Window->Android SDK Manager, then check the box for the latest Android 4.1 (API level 16).