Questions tagged [android-emulator]
An Android emulator is software which simulates the functionality of an Android device running the Android OS. Emulator allows developers to develop and test applications without the need of various real devices with different configurations.
android-emulator
12,419
questions
3547
votes
77
answers
1.1m
views
Why is the Android emulator so slow? How can we speed up the Android emulator?
I have got a 2.67 GHz Celeron processor, and 1.21 GB of RAM on a x86 Windows XP Professional machine.
My understanding is that the Android Emulator should start fairly quickly on such a machine, but ...
1054
votes
23
answers
292k
views
How do I rotate the Android emulator display? [duplicate]
How can I rotate the Android emulator display to see it in landscape mode?
837
votes
36
answers
745k
views
How do you install an APK file in the Android emulator?
I finally managed to obfuscate my Android application, now I want to test it by installing the APK file and running it on the emulator.
How can I install an APK file ...
774
votes
16
answers
382k
views
How can I remove the debug banner in Flutter?
I'm using flutter screenshot and I expected the screenshot to not have a banner, but it has.
Note that I get a not supported for emulator message for profile and release mode.
726
votes
15
answers
637k
views
Set ImageView width and height programmatically?
How can I set an ImageView's width and height programmatically?
664
votes
17
answers
661k
views
How to install Google Play Services in a Genymotion VM (with no drag and drop support)?
VmHow can I install Google Play Services in a Genymotion emulator with no drag and drop support?
I can't install it as mentioned in Stack Overflow post How do you install Google frameworks (Play, ...
613
votes
20
answers
464k
views
How to connect to my http://localhost web server from Android Emulator
What can I do in the Android emulator to connect it to my localhost web server page at http://localhost or http://127.0.0.1?
I've tried it, but the emulator still takes my request like a Google ...
570
votes
41
answers
601k
views
Android Studio error "Installed Build Tools revision 31.0.0 is corrupted"
I'm on Android Studio 4.2.2. I created a new project and haven't added anything to the starter code and whenever I click build or run, I get this error:
Installed Build Tools revision 31.0.0 is ...
528
votes
67
answers
755k
views
'App not Installed' Error on Android
I have a program working in the Android Emulator. Every now and again I have been creating a signed .apk and exporting it to my HTC Desire to test. It has all been fine.
On my latest exported .apk I ...
519
votes
36
answers
539k
views
How to emulate GPS location in the Android Emulator?
I want to get longitude and latitude in Android emulator for testing.
Can any one guide me how to achieve this?
How do I set the location of the emulator to a test position?
481
votes
32
answers
602k
views
How do I launch the Android emulator from the command line?
I'm on Mac, working on Android development from the terminal. I have successfully created the HelloWorld project and now I'm trying to run it from the command line in the Android emulator. Which ...
429
votes
12
answers
542k
views
How to build an APK file in Eclipse?
When I develop the project using Eclipse, the APK file goes on the emulator. But I want to upload my application to a real device. Is there a tool to build an APK file?
What is the process? Or is it ...
399
votes
7
answers
304k
views
How do you connect localhost in the Android emulator? [duplicate]
I have made a php script inside localhost and I am connecting that with httpClient but I am getting a problem.
Please tell me how can I connect to a php file at localhost from the emulator?
399
votes
18
answers
878k
views
How to access data/data folder in Android device?
I am developing an app and I know my database *.db will appear in data/data/com.****.***
I can access this file from AVD in Eclipse with help of sqlite manager
But I can't access this file in my ...
380
votes
62
answers
594k
views
Message "flutter run: No connected devices"
I am trying to create a sample application with Flutter (fresh installation). Android Studio is also installed (fresh installation).
Here is the output of flutter run
flutter run
No connected devices.
...
380
votes
41
answers
201k
views
How can I detect when an Android application is running in the emulator?
I would like to have my code run slightly differently when running on the emulator than when running on a device. (For example, using 10.0.2.2 instead of a public URL to run against a development ...
371
votes
20
answers
236k
views
Failed to allocate memory: 8
From today, when I tried to run an app in NetBeans on a 2.3.3 Android platform, it shows me that:
Failed to allocate memory: 8
This application has requested the Runtime to terminate it in an ...
363
votes
32
answers
304k
views
Android Emulator Error Message: "PANIC: Missing emulator engine program for 'x86' CPUS."
I am trying to run an Android Emulator by using AVD Manager.
I have a Macbook Pro Retina. Installed the Haxm driver direct from intel page.
No emulator is working. All get the same "error" ...
362
votes
28
answers
197k
views
Switching to landscape mode in Android Emulator
This is probably a pretty easy to answer question, but I can't find the solution myself after a couple hours of searching the documentation and Google. I set the orientation of my Android app to ...
343
votes
76
answers
572k
views
Android Emulator issues in new versions - The emulator process has terminated
After updating to Android Studio 2020.3.1 canary 15, when I try to run an emulator, it gets killed with this error:
The emulator process for AVD Pixel_4_API_30 has terminated.
It was working ...
339
votes
13
answers
156k
views
Android emulator doesn't take keyboard input - SDK tools rev 20
I've upgraded the SDK tools to revision 20 (from 18) and since the upgrade, the emulator doesn't seem to accept input from laptop's keyboard. But only using the emulator's own 'soft' keyboard (that ...
333
votes
26
answers
330k
views
Accessing localhost:port from Android emulator
I'm running a web service on my local machine that runs at localhost:54722.
I want to call the service from an app running in the Android emulator.
I read that using 10.0.2.2 in the app would access ...
312
votes
25
answers
704k
views
Emulator: ERROR: x86 emulation currently requires hardware acceleration
I tried to run my Hello World application in Android Studio. I got the following error:
Emulator: ERROR: x86 emulation currently requires hardware
acceleration!
Please ensure Intel HAXM is properly ...
311
votes
39
answers
523k
views
How to connect android emulator to the internet
How can I connect my Android emulator to the internet, e.g. to use the browser? I've found lots of advice on what do to when your connected through a proxy, but that's not the case here, my machine (...
310
votes
16
answers
200k
views
Running the new Intel emulator for Android
Lately Google and Intel have published a new way to run the emulator, which should work much better than the previous version (which has emulated ARM CPU). Here are some links about it: this and this.
...
308
votes
15
answers
353k
views
Add padding on view programmatically
I am developing Android v2.2 app.
I have a Fragment. In the onCreateView(...) callback of my fragment class, I inflate an layout to the fragment like below:
@Override
public View onCreateView(...
306
votes
76
answers
606k
views
ERROR Android emulator gets killed in Android Studio
After updating to Android Studio 2 when I try to run my application and choose an emulator, I wait for the emulator to start and it suddenly gets killed. I can see the emulator process for some ...
300
votes
14
answers
429k
views
Android Studio error: "Manifest merger failed: Apps targeting Android 12" [duplicate]
I have updated my emulator version and Android SDK version to Android S (Android 12). After the update, I cannot run the project. I cannot run a Hello, World! project (empty project), but I can build ...
293
votes
14
answers
180k
views
How do I "shake" an Android device within the Android emulator to bring up the dev menu to debug my React Native app
I am working on a cross-platform React Native mobile app. I am writing console.log statements as I develop. I want to see these logging statements in Chrome while I'm running the Android app in the ...
291
votes
39
answers
311k
views
Error "The connection to adb is down, and a severe error has occurred."
I've spent days trying to launch any Android program. Even "Hello World" gives me the same error:
"The connection to adb is down, and a severe error has occurred".
I'm running Eclipse v3.5 (...
264
votes
19
answers
226k
views
Making the Android emulator run faster
The Android emulator is a bit sluggish. For some devices, like the Motorola Droid and the Nexus One, the app runs faster in the actual device than the emulator. This is a problem when testing games ...
257
votes
37
answers
386k
views
Android emulator shows nothing except black screen and adb devices shows "device offline"
I am just trying to start development in Android.
So, the problem is that when I try to launch an emulator by issuing the command emulator @A2, an emulator comes up on the screen. But even after ...
253
votes
15
answers
229k
views
Taking screenshot on Emulator from Android Studio
I know this probably might be the silliest question but still, I don't know how to take a screenshot of Emulator via Android Studio. I recently switched from Eclipse to Android Studio and I could not ...
235
votes
41
answers
220k
views
Android Studio - Android Emulator Wifi Connected with No Internet
I have wasted a whole day trying out different solutions floating around in SO and other place mentioned to enable wifi on the android emulator but to no avail.
Can anybody help me figure out how do I ...
230
votes
11
answers
119k
views
The Android emulator is not starting, showing "invalid command-line parameter"
I made a simple "Hello World" program in Eclipse. I added nothing to a Java file and only added a text view in file main.xml as
//main.xml file
<?xml version="1.0" encoding="utf-8"?>
<...
227
votes
24
answers
237k
views
How to increase storage for Android Emulator? (INSTALL_FAILED_INSUFFICIENT_STORAGE)
I get this sometimes(not often) for one of my projects, couple of classes only
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
How do I increase emulator's storage?
216
votes
48
answers
308k
views
Android emulator-5554 offline
I'm having a problem with emulator-5554, it keeps telling me it is offline.
When I do a adb devices from the command line it says
emulator-5554 offline
Even after a fresh restart, I try that command ...
212
votes
15
answers
432k
views
How to get root access on Android emulator?
I have All Android SDK versions(from 1.5 to 2.3.3), and I tried many methods for getting root in Android emulator. I don't use any Android device and test everything on emulator(AVD).
I need to get ...
209
votes
23
answers
299k
views
File Upload in WebView
I have been struggling to upload files from WebView. I googled and implemented all suggested solutions (e.g. this SO post), but none work.
I have an HTML page with the following code to upload a file.
...
199
votes
26
answers
110k
views
Android - Emulator in landscape mode, screen does not rotate
When I switch to landscape mode (NUMPAD 7 or CTRL+F11) the emulator rotates the screen to landscape orientation but the Android OS and none of the apps rotate. So everything is sitting sideways. Is ...
187
votes
21
answers
244k
views
Android Studio/Emulator on macOS with ARM CPU M1
I started Android Studio 4.1 in macOS Big Sure 11.0.1 with new ARM cpu M1
After installing Rosetta: Yes, it builds !
But the Emulator has problems, it shows me CPU does not support VT-x
Even ARM ...
187
votes
23
answers
283k
views
Emulator error: This AVD's configuration is missing a kernel file
This problem was discovered when I tried to run the Android emulator in Eclipse. Can't figure out what happened. I searched online for the solution, but it seemed to be vague and I don't understand ...
177
votes
14
answers
183k
views
How to dismiss the dialog with click on outside of the dialog?
I have implemented a custom dialog for my application. I want to implement that when the user clicks outside the dialog, the dialog will be dismissed.
What do I have to do for this?
174
votes
6
answers
93k
views
How to take emulator screenshots using Eclipse?
I need to take screenshots of an android application running on an emulator in Eclipse Galileo.
Is there a built-in feature for this or do I have to download a plugin of some sorts?
162
votes
4
answers
263k
views
How to run .APK file on emulator [duplicate]
Possible Duplicate:
How do you install an APK file in the Android emulator?
I download an APK file and I want to run it on an Android emulator but I don't know how. Please help me. Thanks!
160
votes
35
answers
46k
views
How do I fix "Failed to sync vcpu reg" error?
I'm trying to use the Intel HAX x86 emulator for Windows (8, if that matters). I installed everything and created an AVD for the android version, and everything appears correct, but when I run it, I ...
160
votes
15
answers
154k
views
The system ui isn't responding in android emulator (Flutter)
After starting the avd in android studio, the system ui is not responding message comes in the android emulator. So, how can i fix it ?
160
votes
5
answers
57k
views
Why is my Android emulator keyboard in Chinese character mode?
I'm debugging my Android application using the AVD (Android Virtual Device). When I try to enter text in a text field, my characters are being interpreted as Chinese in the IME.
I don't know how I ...
159
votes
6
answers
33k
views
Android emulator freezing OS X v10.9 (Mavericks) with HAXM
I just updated to OS X v10.9 (Mavericks), and now whenever I start up any of my emulators, as soon as the emulator starts up, my entire computer freezes with a spinning progress indicator in the ...
157
votes
22
answers
148k
views
How can I resize the AVD emulator window in Android Studio?
I've seen many posts asking about how to re-size the AVD emulator window, however, I have not found any that work. My emulator is off the top of my computer screen, and I cannot resize it.
How can I ...