App does not load on Android Emulator - android

I am running my simplest Activity App in Emulator which I created in IntelliJ. I invoked Emulator from the IDEA IDE, it does show emulator in locked screen format. After unlocking I don't find icon of my application. Where am I doing wrong? or how can I run it manually on Emulator?
Emulator shows following message on Console:
Waiting for device.
/usr/local/Cellar/android-sdk/22.6/tools/emulator -avd myavd -netspeed full -netdelay none -wipe-data
emulator: ERROR: Could not load OpenGLES emulation library: dlopen(lib64OpenglRender.dylib, 1): image not found
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
HAX is working and emulator runs in fast virt mode
Device connected: emulator-5554
Emulator Snapshot attached. As you see. I don't find my app here

If you are using windows:
Go to cmd, cd into the folder containing the platform-tools.
Then -> adb install myapp.apk . This command installs the app.
If you are using GenyMotion emulator. Just grag and drop your apk into the emulator.
If the emulator is not in sync with the ADB,which is responsible for the connection. Just restart the ADB like:
adb kill-server
adb start-server

Related

android studio only starts the virtual machine

When I recently studied React Native, I needed to use an emulator to test (when I don’t need a mobile phone to run).But every time you have to start Android Studio and then start the emulator, it is very troublesome to operate twice,
You can start your emulator by using command line, by open your CMD in your sdk folder / emulator. Then try this command
emulator -list-avds
To list your virtual devices and then
emulator -avd <device_name>
You can find the detail here
https://developer.android.com/studio/run/emulator-commandline#starting
Hope that help. ^^
You can start emulators from the terminal/ CMD without opening Android Studio.
To get the list of AVDs (run from sdk/emultor folder)
emulator -list-avds
To run any avd
emulator -avd avd_name [ {-option [value]} … ]
or,
/Users/janedoe/Library/Android/sdk/emulator/emulator -avd Nexus_5X_API_23 -netdelay none -netspeed full
For more details refer - Official guide

Ionic:Android Emulator Error

I'm trying to test my Ionic(3.16.0) hybrid app using Android Emulator that ships with Android Studio v3.0. /myapp> ionic cordova build android successfully creates the build. But when I run /myapp> ionic cordova emulate android the emulator starts and loads the screen, however, I'm not able to locate the my app in the emulator. Also the stack trace in the terminal logs are seen below:
Waiting for emulator to start...
emulator: Requested console port 5584: Inferring adb port 5585.
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
emulator:
Listening for console connections on port: 5584
emulator: Serial number of this emulator (for ADB): emulator-5584
Error: Failed to execute shell command "getprop,dev.bootcomplete"" on device: Error: C:\Users\ilourdus\AppData\Local\Android\Sd
k\platform-tools\adb.exe: Command failed with exit code 1 Error output:
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.
I've adb server running and the platform-tools path added to the system PATH. I've Cordova 6.5.0.
Can I get some help about the errors in the above log and how to bring up my app in the emulator?
This issue was resolved after I changed the CPU/ABI Image from "Google Play...(x86)" to "Google API...(x86)"

Emualtor not attached Android Studio 2.2.2

I'm trying to attach the emulator to Android studio but it doesn't appear on the list of devices. I've tried to execute it from the run button and avd manager.
Besides I've checked and uncheked the Tools > Android > Enable ADB integration option but it doesn't work. Trying to execute adb kill-server and adb-start server it doesn't work neither.
Finally I've tried to start the emulator from terminal by exececuting emulator #name_of_device
Hax is enabled
Hax ram_size 0x40000000
HAX is working and emulator runs in fast virt mode.
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
emulator: emulator window was out of view and was recentered
But then when I execute adb devices, the list of devices attached is empty
Does anybody how to solve this?

Hello World Android App Emulator not running

Hi guys I am trying to get a basic emulator running to display Hello World but the emulator appears but the phone never switches on. Please help me.
D:\Installed_Softwares\AndroidSDK\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_24_2
ERROR: resizing partition e2fsck failed with exit code 9
emulator: WARNING: userdata partition is resized from 513 M to 800 M
RegGetValueW failed 2 The system cannot find the file specified.
RegGetValueW failed 2 The system cannot find the file specified.
RegGetValueW failed 2 The system cannot find the file specified.
Hax is enabled
Hax ram_size 0x60000000
HAX is working and emulator runs in fast virt mode.
emulator: Listening for console connections on port: 5554
emulator: Serial number of this emulator (for ADB): emulator-5554
Will be glad to provide more information as needed.
If you are using Windows, you have to resize (downgrade) the RAM of your emulator uses.
Also, try to use an older version of the Android, like 4.2 or 4.4.
To solve the partition issue on Windows:
Install Cygwin and run the e2fsck cmd
# Navigate to AVD and change the API level of the folder
cd C:\Users\%USERNAME%\.android\avd\Nexus_5_API_16.avd
e2fsck -f userdata-qemu.img

Google TV emulator won't start

I followed this Google TV Emulation guide, which tells how to set up my emulator environment. Although when I launch the AVD created by AVD manager, the emulator starts but no logo appears and a black screen. One of my CPU cores is always 100 percent; KVM is enabed. The -verbose option log ends with the following lines:
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: ping program: /media/Mywork/tools/sdk/android-sdk-linux/tools/ddms
emulator: ping command: /media/Mywork/tools/sdk/android-sdk-linux/tools/ddms
My host envrionment is: Intel i7, Ubuntu 10.04 64-bit.
Can you post the settings for your AVD?
Edit:
Also, have you tried pushing an app into the emulator?
Can you include the steps you used to launch the emulator?
Did you apt-get install kvm?

Categories

Resources