[英]Error while running studio.exe in installing Android Studio
I got an error while installing Android Studio and this is the error message: 安装Android Studio时出现错误,这是错误消息:
Internal error. Please report to http://code.google.com/p/android/issues
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:84)
at com.intellij.openapi.application.PathManager.loadProperties(PathManager.java:315)
at com.intellij.ide.BootstrapClassLoaderUtil.initClassLoader(BootstrapClassLoaderUtil.java:58)
at com.intellij.ide.Bootstrap.main(Bootstrap.java:33)
at com.intellij.idea.Main.main(Main.java:84)
2014-11-15 15:42:10 [Patch] Original patch does not exist: C:\Users\DANIEL~1\AppData\Local\Temp\jetbrains.patch.jar.androidstudio
In the beginning I pointed out there is something wrong with bin/idea.properties
file. 在开始的时候,我指出
bin/idea.properties
文件有问题。 Maybe method com.intellij.openapi.application.PathManager.getHomePath
could not find the IDEA_HOME
path in my Windows environment variable. 也许方法
com.intellij.openapi.application.PathManager.getHomePath
在我的Windows环境变量中找不到IDEA_HOME
路径。 After some analysis I narrowed the error cause to the folder naming. 经过一些分析,我将错误原因缩小为文件夹命名。 I installed the Intellij IDE to custom folder:
C:\\!DATA_STORAGE!\\PROGRAM_FILES\\Intellij
. 我将Intellij IDE安装到自定义文件夹:
C:\\!DATA_STORAGE!\\PROGRAM_FILES\\Intellij
。 I tried to rename the folder with special character (exclamation). 我试图用特殊字符(感叹号)重命名该文件夹。 The results was:
结果是:
C:\!DATA_STORAGE!\PROGRAM_FILES\Intellij - error
C:\DATA_STORAGE\PROGRAM_FILES\Intellij - OK (IntelliJ started)
C:\!DATA_STORAGE\PROGRAM_FILES\Intellij - OK
C:\DATA_STORAGE!\PROGRAM_FILES\Intellij - error
Finally I found the logic: whatever comes after the ! 最终,我发现了逻辑:在!之后发生的一切。 mark is inside the JAR file.
标记位于JAR文件中。
http://docs.oracle.com/javase/7/docs/api/java/net/JarURLConnection.html http://docs.oracle.com/javase/7/docs/api/java/net/JarURLConnection.html
The behaviour has been raised as bug in Java 1.3, 1.4, 5.0. 在Java 1.3、1.4、5.0中,此行为已作为bug提出。 http://bugs.java.com/view_bug.do?bug_id=4523159 There has been made a little change but overall the problem remains.
http://bugs.java.com/view_bug.do?bug_id=4523159进行了一些更改,但总的来说问题仍然存在。 The best existing solution is the workaround: don't use exclamation mark at the end of folder name or file name.
最好的现有解决方案是解决方法:不要在文件夹名称或文件名的末尾使用感叹号。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.