Genymotion not displaying logs in android studio - android

Android studio does not display my println and Log.d calls as well as errors when I run my application with Genymotion. I have changed the emulator settings so that it uses the same sdk as android studio does. I also made sure to select logcat with my device as target and log level verbose. This problem only occurs with Genymotion, not with the default AVD emulators. I have already tried abd kill-server and adb start-server commands without any success. How could I display the logs from the emulator? Thanks

You have to use the same adb for android studio and genymotion.
In other to do that, use the same Android sdk in both.
Genymotion: Settings > ADB > Browse (to the folder).

With Android Studio 1.3, selecting Tools->Android->Enable ADB Integration did the job

Related

I have to run adb connect 192.168.56.101:5555 in order for android emulator to show up in list

When I start a Genymotion emulator (Android studio emulators crash android studio and dont start), I have to run adb connect 192.168.56.101:5555 in order to connect adb to the emulator. Otherwise it doesn't show up when I use adb devices. I never had to do this before and I cannot figure out why.
Looks like it has something to do with recent update in android sdk platform tools. Downgraded mine from 28.0.2 to 28.0.1 and successfully got my genymotion emulator in adb devices back.
1): Try go to SDK MANAGER in folder EXTRAS and install GOOGLE USB DRIVER
If this happens on a Linux machine you could try to Uncheck the "Use Host GPU" checkbox - in the emulator settings**

Genymotion doesn't work "ADB server didn't ACK" on Windows

I can't run Genymotion on my PC. I've already changed the path of the ADB location to my local ADB.
In Android Studio all SDK packages are up to date and I've got the path to the local SDK from Android Studio so it is using the same.
If I am trying to show all devices I get the error:
My environment:
Windows 10
Genymotion Version 2.12.0
This happens when the adb binary used by Genymotion is incompatible with the one from Android Studio.
The setting you set should avoid the problem, but you must "reset" your setup to make sure all the softs use the exact same adb binary. I suggest you to close all the Genymotion devices, then close Android Studio and restart all.
Also, check that the adb you are using on your terminal is the one from the Android SDK.

Why isn't my genymotion device listed when I run "adb devices"

I am starting my first android project using nativescript.
I want to run my project with genymotion.
In genymotion GUI settings/ADB I am using custom Android SDK tools and genymotion tells me the android SDK tools are found. Also the VirtualBox path is valid, and when I renamed the device the VirtualBox name and Genymotion name both changed. The Virtualbox VM is powered down.
I start genymotion and get the emulator open with a black screen. I then run:
tns run android
per the nativescript docs
I get as output:
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again.
I then tried running:
adb devices
and got an empty list so it seems my device is not being recognized, I just don't know why.
I have also tried running:
tns run android --emulator --geny nameOfDevice
This starts the emulator but again just a blank screen. So I guess nativescript knows about the device but adb doesnt?
Any help would be greatly appreciated and apologies in advance if I am missing some obvious android issue.
You should also make sure that your GenyMotion is using the right SDK.
Go to: >> Settings >> ADB
And choose Use custom Android SDK Tools
If the SDk path is found it will be marked with
Android SDK Tools successfully found!
Do not open genymotion before adb initialisation.
Start adb server first
by adb start-server
and then open genymotion to initialise emulator.
After that you should be able to see emulator in list of running devices through adb command. I ran into the same scenario where adb does not list emulators if genymotion is opened before adb initialisation. I hope it helps.
My working solution is:
cd /opt/genymobile/genymotion/tools
./adb devices
You have to use its own adb tool.

AndroidViewClient and Genymotion emulator

I am setting Genymotion Android emulators and AndroidViewClient to test my app. Is AndroidViewClient able to connect to the Genymotion android emulator ?
Thanks
Genymotion behaves like a USB connected device so it should definitely be compatible with AndroidViewClient.
You need first to configure Genymotion to make it use your ADB binary from your Android SDK:
Open Genymotion > Settings > ADB
Check Use custom Android SDK tools
Specify the path to the Android SDK by clicking Browse
Click OK.
After that, you should find your Genymotion instances inside your ADB deamon. Open a command line and type: adb devices
You should get as a result, like this:
List of devices attached
192.168.56.101:5555 device
The "ip:port device" line is your Genymotion machine running.
At this moment, you can run AndroidViewClient tool.

Adb does not see any installed device after Android Studio update

I have updated my Android Studio from v.0.6.1 to v.0.8.1.
Now adb cannot see my physical devices although the driver is installed properly (see screenshot)
Do you have any ideas?
Thanks in advance!
P.S. Android Debug Bridge version 1.0.31
When I reinstall IDE completely, I always have to edit ~/.android/android_usb.ini to add my devices USB VENDOR ID
Double check there are no updates required within the SDK Manager. If not, then go to Android Studio and then on the menu go to Tools > Android > Enable ADB Integration.
Also from the command line run adb devices and ensure that the device is listed there. I don't know what version of Android you have, but make sure USB debugging is turned on and I think since Jelly Bean a popup should appear on screen asking you to confirm that you want to allow the device to connect to the PC.
Hope this helps.
This is not AS problem. Try in terminal
adb kill-server
adb start-server

Categories

Resources