Android Studio installation on Windows 7 fails, no JDK found

后端 未结 29 1679
鱼传尺愫
鱼传尺愫 2020-11-22 04:48

I downloaded Android Studio and attempted to launch the program.

This is running on Windows 7 64-bit with Java 1.7. During the installation my Java 1.7 is detected,

相关标签:
29条回答
  • 2020-11-22 05:15

    You need 1.7 JDK installed on your system. Add a system variable with:

    • name: ANDROID_STUDIO_JDK

    • path: your JDK path (for example, C:\Program Files\Java\jdk1.7.0_21)

      • See more at FIX: Android Studio - Installation Issues on Windows 7 | ERROR: cannot start Android Studio. No JDK found.
    0 讨论(0)
  • 2020-11-22 05:17

    On Windows 10, restarting the installer and running as admin worked for me.

    0 讨论(0)
  • 2020-11-22 05:19

    Install the latest JDK in your system from JDK 7 and JRE 7 Installation Guide.

    JAVA_HOME -> C:\Program Files\Java\jdk1.7.0_4
    path -> C:\Program Files\Java\jdk1.7.0_4\bin
    
    0 讨论(0)
  • 2020-11-22 05:20

    If you have a 64 bit windows OS, pointing the JAVA_HOME system variable to

    C:\Program Files (x86)\Java\jdk1.7.0_21
    

    Will work when

    C:\Program Files\Java\jdk1.7.0_21
    

    fails to work.

    0 讨论(0)
  • 2020-11-22 05:21
    1. Add JAVA_HOME and JDK_HOME system environment variables.
    2. Right-click android studio (the 64 version if that's your OS and JDK) and go to compatibility tab and set "Run as administrator" to true.
    3. Run android studio and high-five me virtually when it works.
    4. If that fails, try "where java" in cmd.exe. If it lists c:\system32\java.exe first, then rename the file and try again.
    0 讨论(0)
  • 2020-11-22 05:22

    Adding a system variable JDK_HOME with value c:\Program Files\Java\jdk1.7.0_21\ worked for me. The latest Java release can be downloaded here.

    Additionally, make sure the variable JAVA_HOME is also set with the above location.

    0 讨论(0)
提交回复
热议问题