設置方法:java
上面的方法是在網上搜的,沒什麼錯誤,但我在設置的時候把JAVA_HOME值寫成了C:\Program Files\Java\jdk1.8.0_05; ,就是後面多了個分號,運行java命令沒問題,因此認爲環境變量設置沒問題。因而安裝android studio,沒法運行,提示"dose not point to a valid jvm",根據網上搜索到的相似問題,增長了JDK_HOME,ANDROID_STUDIO_JDK變量,值跟JAVA_HOME同樣,但都無法解決問題。android
運行studio.bat查看問題,提示「ERROR: cannot start Android Studio. No JDK found. Please validate either ANDROID_STUDIO_JDK, or JDK_HOME or JAVA_HOME points to valid JDK installation. ECHO is off. Press any key to continue . . .」。windows
因而又是一通搜索,終於在這個頁面「http://stackoverflow.com/questions/16574189/android-studio-installation-on-windows-7-fails-no-jdk-found」獲得了提示,有個哥們說:api
This MOSTLY worked for me. I am running 64 bit windows and JDK 1.7.0. I tried adding both JDK_HOME and JAVA_HOME with "c:\Program Files\Java\jdk1.7.0\". It still would not load. However, I capitalized the "C" and removed the trailing slash and it works now: "C:\Program Files\Java\jdk1.7.0" – ASeale May 16 '13 at 12:08android-studio
跟我同樣是64位系統,因而檢查我輸入的JAVA_HOME值,試着去掉後面的分號,果真得以啓動,小小問題居然折騰了我快2天啊。。。jvm