Creating Google TV AVD on windows not deteecting x86 System Image - android

I am trying create the AVD for Google TV on API 13 on windows machine. but while creating, it throws a error asking to install the Intel x86 System Image. but i don't find the x86 system image in the sdk manager for API 13 where as I can see it on other later APIs. (Have already installed it for other APIs)
Could some one please help me fix this and get the Google TV AVD up and running.

I've found workaround for this problem. Tested it on Ubuntu 12.10 but it should work for Windows and Mac OS.
Here are the steps:
download Intel x86 Atom System Image for Android 2.3.3 (API 10) using Android SDK Manager
create folder <sdk-root>/system-images/android-13/x86
copy everything from <sdk-root>/system-images/android-10/x86 into <sdk-root>/system-images/android-13/x86
edit <sdk-root>/system-images/android-13/x86/source.properties file with any text editor and replace next rows:
Pkg.Desc=Android SDK Platform 2.3.7 => Pkg.Desc=Android SDK Platform 3.2
Pkg.Revision=2 => Pkg.Revision=1
AndroidVersion.ApiLevel=10 => AndroidVersion.ApiLevel=13
That's it. Now if you open Android SDK Manager you will see Intel x86 Atom System Image for Android 3.2 (API 13).
Also it would resolve error message while creating AVD with Google TV Addon (API 13).
I had luck to launch emulator and work with it. However there is no guarantee that you would have correct behavior using this emulator.

Related

Intel HAXM Error when Installing on Windows 10 Home (No Hyper-V)

all!
Today was my first time installing Android Studio on my Windows 10 Home Edition laptop and things became complex quickly. Android Studio seemingly installed, but Intel HAXM didn't. (Error message is below.) Further Googling showed me that Hyper-V wasn't available on Windows 10 Home Edition and was seemingly forcibly removed/super disabled on a recent service pack release.
How important is HAXM for Android development since I lack an Android phone? If I don't use Android Studio, what Android emulator and version should I use?
Thankee!
HAXM is a cross-platform hardware-assisted virtualization engine (hypervisor), widely used as an accelerator for Android Emulator and QEMU. It has always supported running on Windows and macOS and has been ported to other host operating systems as well, such as Linux and NetBSD
It is Intel's virtualization extension for Android Emulator on x86.
You can use an emulator with the ARM image instead of HAXM provided that you installed it in your SDK manager.
Check your SDK manager and install the ARM image for the API level you want, then go to the AVD manager and make a virtual device using ARM as the CPU.
Note: ARM images are not available in the latest API levels, but it is available on API level 25 below
I think you don't need it for work with Android Studio.
If you don't have an Android Phone, you will need to set up Genymotion.

Android Studio 2.0 Cannot launch AVD in emulator

I can successfully launch AVDs for the targets Android 5.1 (Google APIs) and Android 6.0 (Google APIs), both using CPU=x86. However the AVD I create for Android 4.1 (Google APIs) using CPU=arm cannot be launched. When I try to launch it I see a dialog:
Cannot launch AVD in emulator.
Output:
emulator: ERROR: This AVD's configuration is missing a kernel file!!
emulator: ERROR: ANDROID_SDK_ROOT is undefined
Since two AVDs do work I'm sure ANDROID_SDK_ROOT is defined. I've also verified that File -> Project Structure -> SDK Location is correct.
I have also run the Android SDK Manager, uninstalled all API 16 items and reinstalled these API 16 items:
SDK Platform
Intel x86 Atom System Images
ARM EABI v7a System Image
Google APIs
Sources for Android SDK
Within the Android SDK Manager all other libraries and packages are up to date. And I have restarted my Windows 7 computer.
Also note that I am forced to create this API 16 AVD for CPU=arm rather than using CPU=x86 as the Android Virtual Device Manager, when showing available system images, does not show an x86 image for target=Android 4.1 with Google APIs).
Does anyone know what the problem is? Or suggest things I can try to debug this issue?
Edit from a day after opening this question: Since I've seen no answer I'm assuming this is another Android Studio bug. I've input this bug report - https://code.google.com/p/android/issues/detail?id=207494
I got same error while trying to run ARM based emulator which is of API 16. I got this error when ARM images are downloaded from the android-studio itself( Not using Standalone SDK Manager option under System Settings->Android SDK in android-studio).
I solved this by launching Standalone SDK Manager from android studio. Then open Tools->Manage AVDs from Standalone SDK Manager menu. Here you can find your emulators. I observed that my ARM CPU emulator shows question marks in the columns named Platform,API label,CPU/ABI. Which seems to be some sort bug. Select the Emulator and click on edit. Choose the Target API,CPU/ABI properly and then click ok.
Now my emulator works perfectly. This solved my problem.
I figured out that updating android-studio caused this problem for me.

Installing Intel x86 Atom System Images offline (manually) for Android

I want to install the Intel x86 Atom System Image because my emulator speed is too slow. Each time I tried to install it from the Android sdk manager I failed getting this message:-
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
Validate XML: https://dl-ssl.google.com/android/repository/sys-img/x86/addon-x86.xml
Fetching URL: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml
Validate XML: https://dl-ssl.google.com/android/repository/sys-img/android-wear/android-wear-sys-img.xml
Done loading packages.
Preparing to install archives
Downloading Intel x86 Atom System Image, Android API 17, revision 1
Resuming Intel x86 Atom System Image, Android API 17, revision 1 download at 1540 (0%)
Download finished with wrong checksum. Expected ddb3313e8dcd07926003f7b828eafea1115ea35b, got 2789383f5a408e854f56ae282de281260fa2b46d.
Done.
Nothing was installed.
I went to the Intel site and downloaded it manually and then followed the instructions to install it. But when I create a new AVD I don't see the Intel atom option in the CPU/ABI menu.
Does anyone know what the problem is?
If you are unable to install Intel x86 System images using Android SDK, then you can always download them directly from the Intel website and install it manually,
Intel has provided easy-to-follow instructions to download and install Intel System images for Android manually,
here is one tutorial on installing Intel® Atom™ x86 Image for Android* 4.4 KitKat Manually
The above instructions would help you to install System Image for Android 4.4 kitkat, but
Intel has also provided direct links for all other Android versions on its own website,
for your convenience, here are the direct links for x86 System Images from Intel website,
Android x86 System Images
Android 4.4 (KitKat) ›
Android 4.3 (Jelly Bean) ›
Android 4.2 (Jelly Bean) ›
Android 4.1.1 (Jelly Bean) ›
Android 4.0.4 (Ice Cream Sandwich) ›
Android 2.3.7 (Gingerbread) ›
furthermore, You may visit Intel Android Tools page if new images are added in future.
Now I have installed it from Android SDK Manager successfully .
I found the problem , I should close the eclipse while downloading and installing the software , because eclipse.exe locks adt-bundle-windows-x86 folder.
But eclipse must show a message that saying :- you must close eclipse.exe !
Had the same issue , and error message was like this,
Downloading Google APIs Intel x86 Atom System Image, Android API 23,
revision 14 Download interrupted: Read timed out Done. Nothing was
installed.
After, i downloaded the image file , in my case https://dl.google.com/android/repository/sys-img/google_apis/sysimg_x86-23_r14.zip
Then i extracted it , and copied the folder x86 to following path, in my case it is
C:\Users\Developer\AppData\Local\Android\Sdk\system-images\android-23\x86\
Then it showed in the installed packages list.

Using Intel-x86 Atom Emulator

I have Installed HAXM for linux 64bit and KVM installed successfully.
Hardware supports VT.
VT enabled in bios.
Installed Intel x86 Atom System Images for desired API's.
Still can't change CPU/abi to Intel x86 using ADV Manager.
This was working for my previous machine with eclipse Indigo,Now not working with ADT bundle From Developers site
ADT Bundle
When you create your AVD, be sure to select the API level for which you have an x86 image installed. In your screen caps above, you show that you have x86 images installed for API level 15 and API level 10. If you are creating an AVD with API level 19, you will not be able to select the x86 image since it is not installed.
It was problem with ADT version.
I updated ADT version to latest 22.6 and now it is working properly.
Thanks for advices though.
can you check your permissions for your SDK folder ?
ls -al /home/pankaj/PankajWorkplace/DevelopmentTools/sdk/system-images/android-15/*
Maybe your AVD Manager doesn't use the right location. If you launch it from eclipse, is eclipse configured to use the Android SDK in /home/pankaj/PankajWorkplace/DevelopmentTools/sdk ? You can change this path from eclipse Window -> preferences -> Android.

Why Intel x86 Atom System Image (API 15) is missing in AVD Manager

I run android tool and downloaded Android 4.0.3 SDK and 2.3.3 SDK, including Intel Atom x86 System Image.
I launched AVD Manager and tried to create an emulator. I can see Intel Atom images for 2.3.3, but not for 4.0.3.
I tried to reinstall it, but still don't see it in AVD.
Has anybody know what is the problem?
In the Android SDK Manager, Intel x86 Atom System Image should show up under Android 4.0.3 (API 15).

Categories

Resources