android-studio - Android Studio错误

标签 android-studio gradle android-studio-2.2

我最近开始学习并尝试开发android应用。(总初学者,即时通讯处于“Hello Word”阶段)
但是android studio总是遇到错误。
这是我开始新项目时遇到的错误。

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 https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html Please read the following process output to find out more----------------------- Error occurred during initialization of VM Could not reserve enough space for 1572864KB object heap



我无法找到解决方法。

最佳答案

您需要将graddle.properties文件更改为Xmx1024m
您可以在此视频中找到解决方案
https://www.youtube.com/watch?v=hT3sHXVWjIU

关于android-studio - Android Studio错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40570272/

相关文章:

java - 将图像存储在 SharedPreferences 中

android - 更新 android studio 和构建工具后,找不到与 android 中给定名称错误匹配的资源

安卓工作室 : Gradle failed to resolve dependencies

android - 如何在 Android Studio 2.2 Preview 1 中正确使用 NDK-Build

android - android.enableBuildCache=true 在新的 Android Studio 2.2 中如何运行?

java.lang.SecurityException : Not allowed to start service Intent error in android api level 23

android - android studio中的多个目标

java - 无法合并Dex Android

java - Eclipse 和 Gradle 类路径导致启动缓慢

spring-boot - SpringBoot JPA错误