Android studio doesn't start on windows Error invoking main method

时间秒杀一切 提交于 2019-12-11 13:38:24

问题


Android Studio is not starting.when I click to open it gives me below error.Any suggestion for error. I have already set the environment variable[ANDROID_HOME,JAVA_HOME,JDK_HOME].


回答1:


In my case, it happened because the idea.properties file in the bin directory was missing. I simply restored it with a backup version I had and Android Studio worked again. I was running on Windows 64 bit with Android Studio version 2.2.1.

I think the file went missing in the first place because I modified the file and when Android Studio was updating itself to the latest version, it detected the modified file and something went wrong with the update process and deleted the file.




回答2:


If idea.properties file is run inside notepad, make sure the file have file name of "idea" only instead of "idea.properties". It is a "idea" file with extension of ".properties".




回答3:


I solved the problem by uninstalling and reinstalling JDK.




回答4:


First check idea.properties file in the bin directory if it's missing restore it with a backup.
if this didn't work then you can uninstall and reinstall JDK

I hope any one of this work for you.

If i am wrong please correct me.



来源:https://stackoverflow.com/questions/38561247/android-studio-doesnt-start-on-windows-error-invoking-main-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!