I installed Android Studio a month ago, and it worked successfully, and I used Windows 7 (64 bit) . Then I set up a new Windows 7 (32 bit) and I was reinstalled by the JDK and Android Studio , and I even downloaded the latest version of Android Studio , but that didn't work.
Firstly, a message appeared to set the environment variables that I made, then I opened Android Studio again and the following message appeared:
Could not find main class com / intellij / idea / main

I searched for this problem and found that the solution is to add JAVA_HOME with a value
C:\Program Files\Java\jdk1.8.0_101
, , . SDK, :

user6755736