1

When running the app in Android Studio I get this error message:

enter image description here

As you can see the path is different.

When clicking OK the emulator starts, but nothing happens...

This is my JAVA_HOME path:

enter image description here

jww
  • 97,681
  • 90
  • 411
  • 885
Christer
  • 2,746
  • 3
  • 31
  • 50

2 Answers2

0

create JAVA_HOME in user variables and system variables both! and put a \ at the end of path

C:\Program Files\Java\jdk1.8.0_20\
Sepehr Behroozi
  • 1,780
  • 1
  • 17
  • 32
0

I found the solution :)

First I added the JAVA_HOME -> C:\Program Files\Java\jdk1.8.0_20\ , in Environment variables.

Then in Android Studio I had to right-click on the root folder of my project and select Open Module Settings.

There I added the JDK path.

enter image description here

Christer
  • 2,746
  • 3
  • 31
  • 50