Emulator android studio cannot open application - android

My emulator has problem , I am using android studio, my emulator always waiting for target device to come online. And My emulator name become Emulator unknown emulator-5554 offline...., May I know how to solve this problem, I am using mac windows. Thanks

Related

adb blinks with 'emulator-5554 [DISCONNECTED]'

I've a device connected via USB (Samsung SM-T385 - Type C Port) and I don't have any emulator created in my system.
OS : Ubuntu 16.04
ADB Version : Android Debug Bridge version 1.0.40 ; Version 28.0.2-5303910
Problem
Even though I haven't added any emulator, adb blinks with emulator-5554 [DISCONNECTED] like above. Sometimes even the real device is not getting detected, and shows just the blink text. This issue also occurred to one of my colleagues. He uses a Windows 10.
What worked?
Restarting the system solved this issue for an hour or less,then the issue rises again.
What didn't work?
adb kill-server
Kill adb from process list
Restarting Android Studio
Question
How do I fix this issue, without restarting the system ?
Change your port number in Android studio setting page
Here is the answer: Blinking option in Connected Devices list that won't let me debug any app
but basically the answer is it is videostream app... uninstall that and fixed!

Android project hangs on deploy

I'm attempting a very novice Xamarin Forms app and it builds in an instant, but then seems to hang when deploying to the emulator, i.e. I aborted after well over 20 minutes. In the output window, under Xamarin Diagnostics, I get the following last few entries:
[I:]: Found Android SDK. API levels: 22, 26
[I:]: Tracking android devices started
[D:]: TrackDeviceTask got: emulator-5554 device
[I:]: Got new device list from adb with 1 devices
[D:RunShellCommand]: emulator-5554 getprop
[D:]: Tracking avd started
[D:]: avd watcher *.ini path: 'C:\Users\brady\.android\avd'
[D:RunShellCommand]: emulator-5554 getprop
[D:]: avd watcher: got device list from avd with 1 devices
This is my debugging target:
My Xamarin Forms projects were working about a month ago, but since then I experimented with nearly every other Android enabled IDE and maybe that somehow affected my AVD.
What can I look at or change to correct this problem?
I have since learnt I must use the Emulator Manager to create an emulator. Now when I try and open the Emulator Manager, it says I must use the SDK Manager to downgrade the SDK tools to v25.x. When I open the SDK Manager, it says it must be updated, and presents an Update button. Pressing the button directs me to a download page with no download button:
The Get Started button takes me to the docs page for the SDK Manager. Now how am I supposed to update this problem child SDK Manager?
If your project compiles but won't deploy, then Visual Studio is probably not connected to your emulator.
I would recommend using Visual Studio Emulator for Android as it is much faster and has worked on every device I have used it on.
On some computers Visual Studio does not connect to the emulator when it starts. A workaround is to find the devices IP address and connect to it manually:
First open Visual Studio Emulator for Android and start one of the emulators
Next in the emulator select tools, a popup window will open, select the 'Network' tab and under the list of network adaptors note down the preferred IP address. Here my one is 169.254.160.177.
Then in Visual Studio open 'Android Adb Command Prommpt' and enter adb connect 169.254.160.177
Now that Visual Studio is connected to the emulator the application will be deployed to the device. You will need to connect to the emulator every time you restart it (don't close it while your programming).
Note: On some computers, Visual Studio will connect to the emulator automatically.
I re-installed VS2017, but the latest, v15.5.1, then recreated the project, and now everything is working fine. VS even starts the emulator automatically.

Debugging not working in Android Studio

I am unable to debug my app in Android Studio. It always keep showing this message
Warning: debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipse
Restart ADB integration and try again
Waiting for process: com.#######
I can't debug by any method neither run time nor launching app in debug mode.
Did you turn it on the Android side? The option is hidden behind a backdoor now.
Then Windows need driver, Linux does not need driver, same might be but I don't know goes to Mac OS X. Windows driver for Nexuses are already included.
This method that I'm writing it works for windows :
1-You need to get your device's drivers using the manufacturer's website. (ADB Drivers).This is a must for debugging and it seems that it is where your problem is lying beneath. If you use a simulator like Genymotion, skip this step.
2-Enable USB debugging from developer options.
3-Connect your device.
As the error message is displaying
Warning: debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipse
You have Eclipse program running which is using the ADB Connection. So first close the Eclipse Program and Try Debugging in Android Studio, if problem persist then restart Android Studio or restart machine

Android emulator crash on Mac

When I am running a project the emulator is taking too much of time and all of sudden it is crashing. My set-up is MAC OS X version 10.7.3, eclipse indigo, android-sdk 4.0.3.
I dont have any audio devices connected to my MAC system, as few of you have suggested to remove the USB audio plug before emulator boots up and plug it again when the emulator has fully loaded.
On eclipse am getting this error msg : emulator-5554 disconnected! Cancelling 'org.ingenyous.basicphonegap.BasicPhonegapActivity activity launch'!
And there is a pop-up msg from mac which says : emulator-arm quit unexpectedly.
Earlier everything was working fine. Any help will be much appreciated.
Check if your 4.0.3 (sdk and ARM system image) is updated to the latest release.

Device debugging Defy Eclipse Windows 7 64 bit

I am successfully using Eclipse with emulators. Now I want to use my Defy for device debugging, since the emulator is a bit slow.
My Defy has Cyanogenmod 7. My app is for 2.1 Android, so it should work. I followed all description and have device debugging set in my app manifest as well as the device settings.
If I type "adb devices", it now shows up one device. First I had problems with the driver with Win7 64Bit. After manual installation of the driver it worked.
I am wondering how to select the real device in Eclipse. In debug, I have my emulators. The real device does not show up in the list of my emulators. It is not an emulator so it makes sense. But how can a Start debugging on it. Or shall I copy the apk on the device and somehow attach Eclipse to the running process for debugging?
Best Regards,
Patrick
I do not get my Defy debugging in Eclipse. Some days ago it had worked. I just restarted my laptop and found the below error. adb is installed under the requested path. If I type adb devices in cmd in that path I get a device: efefeSOME_NUMBERrggr offline, Do not know if the offine is a problem
I also tries the wifi adb apps. If i connect with this tools I also get a device 192.168...:5555 device. This looks good.
After trying again eclipse debug, it directly starts the debugger. I have switched on enable debug, my phone is rootet. Can anyone give me a hint, what I may also consider? It had worked one day and now it does not.
[2012-04-12 22:10:01 - MyApp] ------------------------------ [2012-04-12 22:10:01 - MyApp] Android Launch! [2012-04-12 22:10:01 - MyApp] The connection to adb is down, and a severe error has occured. [2012-04-12 22:10:01 - MyApp] You must restart adb and Eclipse. [2012-04-12 22:10:01 - MyApp] Please ensure that adb is correctly located at 'C:\Entwicklung\android-sdk\platform-tools\adb.exe' and can be executed.
I have been learning Android by developing under Windows 7, Eclipse and the emulator. I wanted to start using my old LG Adroid instead of the emulator, but a soon as I plugged it in and did all the stuff to get it working with ADB, Eclipse blew up with : Please ensure that adb is correctly located at 'C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe' and can be executed.
If I unplug the phone, Eclipse will start up the emulator and work just fine. I found that if I first do a "adb shell" and then exit the shell, Eclipse is happy and works.
I need to do this on every reboot of Windows.
You have to download the USB Driver from Motorola here USB DRIVER
then USB debugging like "Waqas" says and i also use Unknow Sources. I Develop with a Motorola Defy 2.1 and it works fine :-D
...sorry i read you question to fast. Maybe try this go in Eclipse to Run->Run Configurations and set the Target to Manual. Then you should be able to chouse your device
You need to enable USB Debugging mode in your device's setting to allow eclipse (ADT) to use it for development.
Settings -> Applications -> Development -> USB debugging (should be
enables)

Categories

Resources