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
  • 90,984
  • 81
  • 374
  • 818
Christer
  • 2,186
  • 3
  • 29
  • 47

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,730
  • 1
  • 16
  • 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,186
  • 3
  • 29
  • 47