I have no open emulator and no device connected to my computer but when I run my android project it shows me the following emulator. Why?
I have restarted my eclipse and my computer. nothing changed.
By any chance do you have an application installed called BlueStacks? If the answer is yes then this is because this is its self an Android emulator which listens on port 5554
Related
in the last week, I've been trying to connect my Meizu m2 phone to my computer for debugging purposes (running an app from the android studio) without any success.
I've enabled my USB debugging mode on my device, I've connected it to be on MTP rather than PTP, and I've also taken a look at my computer's device manager, and seen that the device wasn't listed under other devices category, and honestly I couldn't tell where was he listed.
In addition, I've opened an android studio and pressed the run-app button, but my phone wasn't recognized by the android studio.
Please help me fix this issue.
Follow these steps:
Try installing PdaNet+ Windows app
http://pdanet.co/a/
Install PdaNet+ Android app on your device. Download from Play Store https://play.google.com/store/apps/details?id=com.pdanet&hl=en
Now connect your phone to PC/Laptop
Open Android Studio and check device connected or not
Hope this will be helpful...
There is many reasons and some instructions :
1- disable driver signature enforcement and connect again
2- install Universal Driver
3- install another ADB Driver
I am new to android development and was trying to use bluestacks to test my apps (as my pc won't run the emulator fast) but the bluestacks emulator is not being detected by android studio.
I started bluestacks and then ran my app. On the choose device dialog it doesn't show bluestacks.
I looked up in device monitor, but bluestacks wasn't detected there.
I also tried using adb kill-server, adb start-server, adb connect 127.0.0.1
but that didn't work as well. It says "connection could not be made as the target machine actively refused it".
All the solutions given in the other related stackoverflow post don't work. Android studio won't recognize bluestacks.
Please Help !!
Try in command prompt "netstat -anb" with administration privileges. Check if there is 127.0.0.1 5555 Estebalished.
If everything is OK then temporary disable firewall and type"adb connect 127.0.0.1:5555" should work.
i too have also gotten the error "connection could not be made as the target machine actively refused it" recently (when i tried to connect to adb using command prompt)
Trying with -> adb connect localhost:5555 or adb connect 127.0.0.1:5555 would not work. You need to identify your bluestack device ip address. You can identify the ip address using the preferences in your bluestack emulator setting. (where you enabled ADB in bluestack).
I did the following to resolve the error you had encountered and successfully connect Android studio to Bluestack. please try the following steps. (I am using windows 10, Android Studio 4.0.1, Bluestacks 4.200.)
find your android studio sdk platform tool folder. For me its is
custom installed in my D drive. for example->
D:\AppData\Local\Android\Sdk\platform-tools
right click on adb.exe
and run as administrator. (click on yes if a pop up ask if you would
like to make changes to your devices. After that you would only see
another pop up that suddenly disappear.)
open Bluestacks. Run your selected emulator (samsung/pixel etc). Ensure that
you have enable "Enable Android Debug Bridge (ADB) in the emulator
preferences.
open command prompt. cd to your platform tools folder path.
enter the following command->adb connect xxxxxxxxxxx where xxxxxx is your
device localhost ip. (see attach pic. My device ip is
127.0.0.1:xxxxx hence my command is ->adb connect 127.0.0.1:xxxxx
continue with the following command->adb devices you would see your bluestack
emulator device. same ip listed.
open your android studio. You would be able to see your bluestack emulator
[
i don't know if you fixed the issue or not but it's pretty simple to use bluestacks, if you see this screen when you open it like this all you have to do is run the app in android. it happens where android doesn't detect it because it wont see it as a device you either wait or try to get that screen (that sort of refreshs)
Just Need to do this!
Go to the SDK folder that you have got in your computer,then open the "platform-tools" folder,then open the "adb.exe" as administrator.
then try the BlueStack emulator.
if u got problem to connect with blue stack through android studio then follow following steps
in run(windows+R) put '%localappdata%\Android\Sdk\platform-tools' and check adb.exe is working correctly or not
If not then download file from
https://www.microsoft.com/en-us/download/confirmation.aspx?id=49093 which is
Update for Windows 7 for x64-based Systems (KB2999226) (related OS)
and install it.
allow adb.exe as exception in your virus scan software don't treat this exe as malware.
start your blue stack emulator.
go in setting of blue stack emulator go in preferences click checkbox 'Enable Android Debug Bridge'.
go to this location %localappdata%\Android\Sdk\platform-tools and run cmd through this location.
put command 'adb connect localhost:5555' press enter in command prompt.
start android studio then run project through play button popup will come with virtual device list, it will show your emulator's device.
...happy coding
I'm trying to run an ionic app on my mobile phone (Android 4.4.2).
USB-Debugging is activated.
When i run the command "ionic emulate android" everything works fine and the app is opend in the emulator.
But when I run the commad "ionic run android" I get following warning:
WARNING : No target specified, deploying to emulator
and the app is started on the virtual device...
Shouldn't the app run on my mobile phone? What am I doing wrong?
How can I specify the target?
P.S.: When I copy the .apk file to the phone I can run the app.
I had another developer tool opened (Chrome Inspect) and it "ate" the connection. In my case, just closing the Chrome Inspect panel and running ionic run android worked.
I solved the problem.
Here is what I did:
I typed into the command line: adb devices (located in the "platform-tools" folder in the Android SDK) which returned me an empty list.
So I installed my phone's drivers, which I downloaded from the vendors homepage.
Now the list contains my device and the app is started on my mobile phone.
I had a different problem, with a very simple solution.
When plugging in your Android device for the first time, it'll ask you to trust the computer's certificate. That popup screen disappeared on me, as I was just getting a call.
Simply unplugging/replugging your phone and accepting your computer's certificate should do the trick!
Once you've enabled your device for debugging, make sure to turn on usb tethering on the device;
Settings > Tethering & Networks > USB tethering
This fixed the problem for me.
In my case I had Android 5.1.1, and below are the steps I took:
Please check that your PC recognizes your phone (you can access the files like in a USB flash drive). If not please install the drivers from google here.
Please check that the USB debugging options is checked on your phone, then:
1- Go to Setting -> General -> '{} Developer options'
2- Look for the 'USB debugging' option
3- If the 'USB debugging' option is disabled then turn off 'Developer options' and turn it back on. Now you should be able to check the 'USB debugging' option.
None of these worked for me on android 6.0 on a mac.
I found this article: http://trendblog.net/android-file-transfer-not-working/
quoting from it:
Enable Developer Mode by going to Settings > About Phone (at the very bottom usually) > press on Build Number repeatedly until the pop-up appears
Go to Settings > Developer Options
Enable USB debugging
I'm on a Mac.
What worked for me was to heed the warning on the device that said no program on the Mac was available that could connect to the device, such as Android File Transfer.
I installed that. Unplugged and replugged the USB cable. And voila.
I had two problems (Ubuntu OS):
I had a connection open with chrome//inspect - close that (simply close the tab)
I missed the dialog that appears when you connect your device through USB cable. You must trust the computer.
Now run the command cordova run android and look at your device there another dialog will be appeared click ok, now you are done! In the terminal you will see LAUNCH SUCCESS. By the way I removed the old app from my device too.
No target specified and no devices found, deploying to emulator
When this message appears, you have to click START, and activate your emulator before.
If your app is already installed in your device and your device debuging is already enabled.
Then uninstall the previous app and install the fresh apk
sudo ionic cordova run android
Once you are remove the USB plugin from the computer means it will not work. Already open the Chrome inspect in your PC means close that tab and run.
In my case, just closing the Chrome Inspect panel and running ionic cordova run android worked.
Thats all. Enjoy your coding
I got the solution by removing the Android emulator and re-create the emulator from AVD Manager of Android Studio.
Eclipse is not able to detect my android device even though it is connected to my computer. I had it working on my computer earlier, but my hard drive crashed so I had to reinstall/setup eclipse, and now it doesn't work. I have enabled USB debugging. I updated my USB drivers/ android devices. I tried connecting my android phone first, and then tried my tablet, but there was no change. I tried restarting the ADB server. The android project runs on the emulator, but the emulator takes so long to load and is laggy. I did a lot of research on how to fix this, but nothing is working. In my eclipse console it says, "Failed to find an AVD compatible with target 'Android 4.4W'."
if you have root, you can try to use Wireless adb via wi-fi. for this you must install from GooglePlay app like "wireless adb" run it and connect from cmd like this:
"e:\androidSDK\sdk\platform-tools\adb.exe connect 192.168.0.68:5555"
Also i recommend you to install free third-party android emulator BlueStacks, it work very fast! faster then real device connected by usb
For virtual device try Genymotion
For hardware
-first check if your device is connected - adb devices //some serial number should list. If empty, you need to install proper drivers manually.
also check in windows Device manager
Try to disable USB debugging then enabled USB debugging.
Relay! Yeah it's work.
whenever i start eclipse or android studio an emulator is constantly running in the background. when i try to turn it off it restarts again immediately. no matter if i work with a real device or an emulator i have created, this other emulator is not stoppable. in the android debug monitor this emulator is listed as emulator-5554 - Online - ? [2,3,4, debug] (Version API10). i never created or used this emulator, and there is no place to find and delete it.
actually i am able to work with eclipse or android studio with that annoying emulator, but it seems to slow down the performance and i would like to get ride of it.
Were you using BlueStacks back then by any chance?
It uses the port 5554, and that might have been your problem too!
It happened to me as well and found the solution in another question:
Eclipse Android Emulator-5554 is always displayed
Strange, but should be able to kill a "hidden" emulator instance from the command-line by connecting to its console, i.e.:
telnet localhost 5554
kill
Replace 5554 with your emulator instance's number.
I use AndroVM. For me its perfect.
Todo is:
install VirtualBox first
download AnroVM
file will open in VirtualBox
start the machine and set USB debug on (settings >> dev. options)
in commandprompt goto your "sdk\platform-tools" type adb connect 192.168.15.101
When it's ok you will see your device in Eclipse.
edit: When your Eclipse is not working well, just download a new bundle again