Android Studio

From Wildsong
Jump to navigationJump to search

Today all I care about is getting ADB working over WiFi so that I can see files on it. My Moto phone does not respond on USB so I am trying this.

To do this, use the Device File Explorer. It's in View -> Tool Windows


Installing on Windows 10

2020-May-05 I got this error on install but it's probably only for the hardware emulator "Failed to install Intel HAXM": https://software.intel.com/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows

The log shows this; it's probably not compatible with running Docker Engine at the same time.

This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed. 
Please ensure Hyper-V is disabled in Windows Features, or refer to the Intel HAXM documentation for more information.

Installing on Mac

Where is my JDK?

Android Studio wants to know where the JDK is. Since I install it from Oracle, it's not in the place expected on an Apple computer. On the Mac, to find the JDK, use /usr/libexec/java_home. This will tell you where the default JDK is located.

You can change it...

I want to use Java 7 JDK as default

/usr/libexec/java_home -v 1.7.0_79 --exec javac -version

I want to use Java 8 JDK as default

/usr/libexec/java_home -v 1.8.0_45 --exec javac -version