A Small Test after Installation of Android Studio

I recently installed Android Studio release 3.2.1 (for Windows 64-bit). That is the latest release at the time of writing.  The installation was smooth, and ended without error messages on my Windows 10 desktop.  Like Eclipse that I had fun with some years ago, Android Studio downloaded a lot of plug-in's after the initial installation. 

As a small test, I created the simplest "Hello World" type of project.  I entered a few lines of code and checked if they would be compiled well.  I launched the phone emulator of my choice (Google Pixel 2), and ran the app. The emulator displayed the number array according to my test code.



The installation of Android Studio was good.

In Android Studio, click Help > About, we can see the version information:



In addition to Android Studio version 3.2.1, we can see JRE (Java Runtime Environment) version 1.8.0_152-release.  That is a version number that I wanted to double check.

Before I started installing Android Studio, I already had JDK 11 (that is Java Development Kit version 11) on my computer.  Because of that, I preferred to check where the JDK bundled with Android Studio was located.  That was necessary because Android Studio uses that specific version of JDK to compile my code.

The JDK version that Android Studio uses is seen in File > Project Structure.

In the Project Structure window, check the JDK location.



The default JDK location is at C:\Program Files\Android Studio\jre

In that directory, I checked that...

The Java Compiler version is:
javac 1.8.0_152-release

The Java Runtime Environment is:
openjdk version "1.8.0_152-release"
OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
OpenJDK 64-Bit Server VM (build 25.152-b06, mixed mode)

Therefore it is clarified that Android Studio overrides the use of my original setup of JDK 11 by its older bundled version JDK 8 by default.  I have the option to specify my newer JDK location, however, Android Studio recommends using the embedded JDK.

Comments

Popular posts from this blog

Finding Median by Stream

Factorial by Different Styles in Java

Reduction by Java Stream