I am trying to debug an app (with min. API 10) that runs fine on a real device running Nougat (API 24) but the app crashes during specific tasks on a real device running KitKat (API 19).
I use Android Studio.
I want to emulate a device running API 19 to understand what is making the app crash, using the bugger in Android Studio.
I created several new virtual devices in the Android Virtual Device Manager and selected the KitKat system image (API19) (Android 4.4.4) (google APIs), but when I launch the emulator for these devices, the emulator crashes after showing the Android logo. And I cannot reach the home screen.
I have no problem running API25 on emulated Nexus 5 or 6.
Where should I start looking to fix my issue ?
Thanks
Ensure you are using the latest x86 Google APIs system images from the SDK Manager as well as the latest Android Emulator. As of writing this, it should be revision 29 for the API 19 system image (see screen shot):
Revision 29, should work:
To further troubleshoot, you can run the emulator from the command line to see any error output. To to this, run the following commands from your Android SDK location, as indicated in the Android Studio SDK Manager window.
$ ./tools/bin/avdmanager list avd (this will list all AVDs on your machine, identify the API 19 AVD that you want to run and note the "Name:" field.
$ ./emulator/emulator -avd Nexus_5_API_19 (with Nexus_5_API_19 being the name of your AVD on your machine.)
Note any error messages. If you find an error with the emulator, you can file a bug here: https://developer.android.com/studio/report-bugs.html
Related
I've been learning Android studio and android app development for a while now and I've been installing emulator .I recently installed the Nexus 5S API 24 but that showed some emulator errors
enter image description here
And then I thought the problem is with the API and so downloaded an emulator with lower API i.e; NEXUS 4 API 18 and that is also not running showing the same error. I thought the problem is with android Studio and hence I uninstalled the whole Android
Studio and then downloaded it again.But again the same errors show up.
I tried connecting my phone as an emulator instead of downloading an emulator.
But then, something showed up like in the picture below
enter image description here
Mine is a Gionee P7 phone .
Any help on this issue would be helpful .
Open the SDK Tools (Tools> SDK Manager> SDK Tools) to check if you have installed the Intel X86 Accelerator, if not, check the box and apply, then restart your AS, it should work.
Still recommend you to use real device to run your application, since the emulator really cost a lot of memory resources.
ist it possible to run AVD on VirtualBox?
I have Ubuntu 14 installed on it.
I have downloaded new Android Studio but with a bit obsolete tools 25.2.5 what allows to use "android" command.
I have created such AVD:
Available Android Virtual Devices:
Name: AVD1
Device: Nexus 6 (Google)
Target: Android 4.0.3 (API level 15)
Tag/ABI: default/armeabi-v7a
Skin: 1440x2560
When I launch it i can see only black screen and nothing happens.
I heard that it's not possible to run AVD on emulated operation system, but don't know if it's true. Is there any solution to overcome this problem?
And if not, what you would reccoment then? Should I find some online emulator, test on phycial device or maybe install AVD on my host system (Windows), and test on Windows. But i don't know if I can take file generated on Ubuntu and test on Windows??
Thank you in advance!
My app has a minSDKVersion=11. This means that it can install and run on any device/emulator running on a platform with API version 11 or greater.
I have a Samsung Nexus S phone running Android 4.1.2 (Jelly_Bean API 16) and a GalaxyNexus emulator running on API 14.
My problem is that the app will install correctly on the GalaxyNexus emulator. When I try to install it on the NexusS phone, the Andrid Device Chooser does list the phone but does not allow me to select it
What could be the reason here?
Here is the attached screenshot
Having built an application for Android Minimum SDK of API 14 I wanted to test this on its lowest possible version.
It works fine and the emulator runs fine for API 16.
Emulator runs fine for API 10 but the application crashes, as expected.
I have tried several emulator set ups for API 14 but none of them seems to boot. Emulator starts up but screen stays black, no Android logo.
MY build environment is all Android Studio, including the SDK and emulator images.
I have the SDK and ARM EABI v7a image for APIs 10, 14, 16 and 18 but 14 is the only one giving issues.
All running on a MAC (Lion 10.8.2) and am now at a loss as to why the emulator is not playing ball, any help to get the emulator for API 14 running would be appreciated.
When run the console loops with the message "Device is not ready. Waiting for 20 sec." and emulator screen stays blank, even after a ten minute wait.
Below is a screen grab of one of the failing emulator setups:
SDK Manager packages installed are:
Just try unchecking "Use Host GPU" some emulator images just can't handle it.
When I start my AVD emulator, the emulator just shows blank screen with 'android' written at the center. I waited for half an hour but nothing changed.
I am using Android SDK 2.1 and Eclipse 3.5
I see that quite a lot. In my case, I can clear it by shutting the emulator window, doing 'adb kill-server' followed by 'adb start-server', then restarting the emulator. I have also had more success launching the emulator first before letting the debugger launch it when I start debugging.
I was faced with a blank black screen after the emulator was started by Titanium and none of the emulator buttons such as Menu or Home did anything.
To fix it I entered the following commands from the sdk / tools directory:
android list avd
This listed the emulator images. In my case it listed two:
Available Android Virtual Devices:
Name: titanium_3_WVGA854
Path: C:\Users\xxx\.android\avd\titanium_3_WVGA854.avd
Target: Android 1.6 (API level 4)
Skin: WVGA854
Sdcard: C:\Users\xxx\.titanium\android.sdcard
---------
Name: titanium_8_WVGA854
Path: C:\Users\xxx\.android\avd\titanium_8_WVGA854.avd
Target: Google APIs (Google Inc.)
Based on Android 2.2 (API level 8)
Skin: WVGA854
Sdcard: C:\Users\xxx\.titanium\android.sdcard
In my case I wanted the Android 2.2 API so I entered
emulator #titanium_8_wvga854