skip to Main Content

I tried every solution I can think about, but it still not working.

I’m getting this error while running my app.

FAILURE: Build failed with an exception.

  • What went wrong:
    The supplied javaHome seems to be invalid. I cannot find the java executable. Tried location: C:Program FilesAndroidAndroid Studiojrebinjava.exe

  • Try:

Run with –stacktrace option to get the stack trace.
Run with –info or –debug option to get more log output.
Run with –scan to get full insights.

3

Answers


    1. add java to system environment variable.
    2. restart your IDE

    if it doesn’t work

    1. try to run after restarting your PC.
    Login or Signup to reply.
  1. Go To the android studio directory (Default C:Program FilesAndroidAndroid Studio) remove the JRE folder run cmd as administrator

    cd C:Program FilesAndroidAndroid Studio mklink /D "jre" "jbr" – REF.

    Login or Signup to reply.
  2. I have faced the same problem, you have to do as what income in these posts:

    1- JAVA_HOME & JAVA path

    2- This to return every thing to the normal

    after that every thing will be ok, I’ve done all of that since a while today.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search