摇篮工程同步失败。在机器人工作室1.0.1基本功能(如编辑,调试)将无法正常工作摇篮、无法正常、基本功能、机器人

2023-09-06 04:19:21 作者:浪漫写诗集

我已经开始采用Android 1.0.1工作室并没有什么我可以做的,因为我有这样的错误,甚至是XML无法呈现。

I have started using Android Studio 1.0.1 and there is nothing I can do as I have this error and even the XML can't be rendered.

错误:无法启动守护进程。 这个问题可能是由后台程序配置不正确造成的。 例如,无法识别的JVM选项使用。 请参阅在后台的用户指南章在http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html

Error:Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html

错误 无法预留足够的空间对象堆 错误:无法创建Java虚拟机。 错误:发生了致命的异常。计划将退出。

Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

某些别有用心的人面临同样的问题?

Somebody else facing the same problem?

推荐答案

我得到了同样的问题。在我的情况下,修复是指一个正确版本的JDK。我的Andr​​oid Studio是64位(在Windows上,你可以看到它在任务管理器作为工作室的 64 .exe文件),而它指的是32位的JDK。要检查它转到文件>其他设置>默认项目结构> JDK位置并检查路径。在Windows下,如果它显示32位的位置的 C:\ Program Files文件(86) \的Java \ jdk1.7.0_25 的,而不是64位路径的 C: \ Program Files文件\的Java \ jdk1.7.0_XX 的然后将其更改为正确的。如果你没有一个64位的JDK,然后下载并安装它。

I got the same issue. The fix in my case was to refer to a correct version of JDK. My Android Studio is 64-bit (on Windows you can see it in task manager as studio64.exe) while it was referring to 32-bit JDK. To check it go to File > Other Settings > Default Project Structure > JDK location and check the path. Under windows, if it shows 32-bit location C:\Program Files (x86)\Java\jdk1.7.0_25 instead of 64-bit path C:\Program Files\Java\jdk1.7.0_XX then change it to the correct one. If you don't have a 64-bit JDK then download and install it.