Android device monitor freezes on Mac OS X

Viewed 11237

I just launched the Android device monitor for the first time on OSX but it freezes and I am not able to click anywhere, it just does not respond to any mouse or keyboard input.

I think it's downloading, I have very good internet speed, but it's downloading very slowly. I tried to download a song and it downloaded 5 MB in 30 seconds, and for this case it's downloading 2 MB in 5-10 min and its size is about 540 MB, so please assist me with what should I do to download fast? Any help would be appreciated.

Is there any manual way to download and connect it to Android Studio?

Any way to make it respond to mouse clicks?

8 Answers

Finally Fixed!!!. This problem occured to me when i was using jdk-8u161-macosx-x64, downgrading the jdk from jdk-8u161-macosx-x64 to jdk-8u151-macosx-x64 solved the issue for me.

  1. Remove your existing java jdk by running this command sudo rm -rf /Library/Java/*
  2. Download the jdk-8u151-macosx-x64 from http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html you need to sign up to oracle to download previous versions of jdk.
  3. intall jdk-8u151-macosx-x64 by just following the instructions.

Finally issue resolved. It was JDK java version.

Changed it to a level below and its working now.

java.version=1.8.0_152-ea --> not supported it seems

java.version=1.8.0_151 --> working fine with it

With android studio 3.0, you can use Device File Explorer. Tab button is right bottom side of the screen.

enter image description here

You can upload your file by right click - select upload. enter image description here

This solution works: https://stackoverflow.com/a/51212642/4903059

Alternatively you can keep latest jdk and update swt used by monitor:

get updated swt: https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/R-4.7.1a-201710090410/swt-4.7.1a-cocoa-macosx-x86_64.zip

unzip somewhere

copy extracted swt.jar over lib/monitor-x86_64/plugins/org.eclipse.swt.cocoa.macosx.x86_64_3.100.1.v4236b.jar

But I had to download a newer swt when using Android Studio 4.0 on macOS Catalina 10.15.5:

https://archive.eclipse.org/eclipse/downloads/drops4/R-4.9-201809060745/download.php?dropFile=swt-4.9-cocoa-macosx-x86_64.zip

This tends to work for me but turn off WiFi on all the devices on your network. Also clear your cache.

If you just want to copy files from your local computer to simulator, I think you can use the adb command to achive this purpose.

Here is the sample command to copy your folder / file to the simuator's sdcard

adb push myFolder/ /sdcard/myFolder

enter image description here

Related