Android Studio installation on Windows 7 fails, no JDK found

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

    This problem has been fixed in Android Studio v0.1.1, so just update Android Studio and it should work.

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

    Sometimes you can resolve this type of issue by setting environment variables so the process looks for the JDK in the right spot.

    Another approach is to figure out where the process is looking, then put your JDK there.

    I've had lots of success using Process Monitor from Sysinternals:

    1. Start -> Run -> procmon
    2. Go to the Filter menu, then select Filter...
    3. Set Event Class is File System then Include
    4. Add, then OK

    This will filter down to all the file system operations taking place on your machine.

    You could try filtering based on the result of the File System operation:

    • Right click on the Result column, then Exclude 'SUCCESS'

    You can also quite easily filter based on the process name, either from the Filter... menu option or by right clicking on the Process Name column and selecting Include 'process.exe'.

    Once you find the file system operation that's failing, the Path column will tell you where to put your JDK.

    I've found this to be very empowering. Especially compared to the frustrating process of changing environment variables by trial and error.

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

    To complete this stack of possible solutions: For me the problem was, that I did not execute the Android-Studio-Setup as administrator. Running it as administrator then made me able to install Android-Studio.

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

    The answer to the original question is that, might be you are opening android studio from 32 bit shortcut icon of android studio, try to open from icon "studio64" located under .../bin/ where android studio setup is install.

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

    In case you had it running but Now it doesn't Launch.
    I deleted the C:\Users\<NAME>\.AndroidStudio<version>\ folder and it worked.

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

    I had the same issue. I got resolved setting up correctly the environment variables in windows, for instance:

    JAVA_HOME -> C:\Program Files\Java\jdk1.6.0_45
    path -> C:\Program Files\Java\jdk1.6.0_45\bin
    
    0 讨论(0)
提交回复
热议问题