¿Cuál es la forma correcta de trabajar con múltiples imágenes AVD para múltiples versiones de API?

Recently I downloaded the Android SDK, but I ended up installing SDK-Platform for API-version 10 (Android 2.3.3), since that is the version I wanted to work with initially. However now I also need to work with Android 4.0.3, but SDK Manager continually fails to install the SDK-Platform for API-version 15, and thus doesn't install the corresponding system images either.

So I'm wondering, as to what is the right way to work with Android ICE, Jellybean (in future) and Gingerbread, on the emulators?

preguntado el 31 de julio de 12 a las 15:07

Assuming that you are using Windows: Have you started the SDK Manager as root to install the packages? -

@nkr, not sure what you mean "as root" ? I am indeed on Windows 7, and my account has full Administrator rights. -

Just right-click on the SDK Manager (e.g. in the startmenu) and click "Run as Administrator" (or similar). After that you should be able to install the desired packages. -

Thanks @nkr. While I did find the 'Run as Administrator' option, and used it, the outcome was same, i.e. SDK Manager failed to install the latest SDK-Platform. Do I have to manually remove the installed API-10 SDK-Platform first ? Since it is the only working Platform, and my internet connectivity is poor, I am bit cautious in trying that out. -

You can install as many platforms as you like. The only thing I could think of atm is to uninstall the whole SDK and reinstall it again. -

3 Respuestas

You should start Android SDK Manager and you should see new OS Platform. You can download the OS image (es Gingerbread, ICS and so on).

Otherwise you can download the new version from www.android.com and re-install everything.

Once you have the OS image downloaded in your pc you can create different emulator using these images. Hope this hep.

Respondido 31 Jul 12, 16:07

Like nkr said, you should try to run the sdk manager with full permession (UAC works better on windwos7 than on windows vista, but sometimes it needs a hand ;) ).

FYI: previous question probably about the same issue

contestado el 23 de mayo de 17 a las 13:05

Agreed, that did help, and thanks @nkr. What was blocking was the fact that I have a lousy internet connection, s.t. the https download of the platform was breaking, which led to dependency failure for image etc., and thus nothing was getting installed. I moved to http based download, and installed everything one by one, and I could get a successful installation. Thanks all. - bdutta74

Your build target should alway be latest platform (i.e. Jelly Bean API 16). Properties->Android->Build target

In your manifest you should define something like:

  <uses-sdk
    android:minSdkVersion="10"
    android:targetSdkVersion="16" />

Lint will tell you if your code uses something not available in previous versions. You can test you code on any emulator to ensure correct functionality.

Respondido 31 Jul 12, 16:07

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.