I had the same problem. I tried setting all kind of paths but nothing worked. So I had to do some dirty fix. The only problem with this is that it opens a blank command line window.
I did the following to make it work.
- goto the AndroidStudio installation folder.
- goto
bin
folder and openstudio.bat
in text editor - add
set JAVA_HOME=C:\Program Files\Java2\jdk1.8.0
//your java path after the ECHO line. - goto
Start
->All Programmes
->Android Studio
-> - right click on
Android Studio
and click onproperties
. - You will see the
Target
something like<installation path>android-studio\bin\studio64.exe
- change it to
<installation path>android-studio\bin\studio.bat
Now you can access it by clicking it from the menu.
Note : I tried it with 8, It works.