Android Studio installation on Windows 7 fails, no JDK found

后端 未结 29 1665
鱼传尺愫
鱼传尺愫 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:09

    Today I found another situation when this problem occures - when you have several JDK, defined in JAVA_PATH. I have:

    JAVA_HOME = C:\JAVA\JDK\jdk1.6.0_38;C:\JAVA\JDK\jdk1.7.0_10
    

    So I received this problem with Android Studio setup

    But when I've removed one of JDK - problem has been solved:

    JAVA_HOME = C:\JAVA\JDK\jdk1.7.0_10
    

    Installation wisard found my jdk and i had a nice night to study studio.

    But unfortunatelly even installed studio doesn't work with several jdk. Does anybody know how to fix it?

    I hope I've helped someone

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

    The path for the latest JDK. It worked very well.

    enter image description here

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

    If setting the JAVA_HOME variable doesn't work for you, set:

    STUDIO_JDK=C:\Progra~1\Java\jdk1.8.0_172
    

    Where the path points to your JDK installation This is the only thing which works for me in Windows 32bit with Android 10 and up.

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

    If you are getting message "Your Android SDK is out of date…" — click "Configure" —> "Project Defaults" —> "Project Structure", pick "SDKs" —> "Android SDK" and in a "Build Target" choose "Android 4.2.2". Click "OK". Now it should work fine.

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

    For me, the problem was that I had changed the GC vm arg to -XX:+UseParallelGC in the C:\Users\<username>\.AndroidStudio2.1\studio64.exe.vmoptions file. That's what I use in Eclipse and I was trying various things to get AndroidStudio half way as efficent as Eclipse. I restored the GC to -XX:+UseConcMarkSweepGC.

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

    MAKE SURE YOU RESTART ANDROID STUDIO

    Even though i should know better and swear i did, make sure you restart studio after making these changes as it clearly does not check them on every build (which to me makes sense that system/user variables should only be read once on startup)

    Anyway, yea... Make sure you restart after you make these changes..

    Path = to the bin folder in the jdk folder (path already exists)

    JAVA_HOME = to the jdk folder

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