Error:Failed to complete Gradle execution.
来源:互联网 发布:discuz数据调用 编辑:程序博客网 时间:2024/06/14 00:36
在初次创建Android项目的时候,经常会报如下错误:
Error:Failed to complete Gradle execution.Cause: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.htmlPlease read the following process output to find out more:-----------------------Error occurred during initialization of VMCould not reserve enough space for 1572864KB object heap
因为每台PC 上的 AS 配置不同,可能会导致出现上面的情况。而我这里的原因是,在gradle.properties 文件里 JVM 配置出错。
所以在项目目录下面的gradle.properties文件中将如下这句话:org.gradle.jvmargs=-Xmx1536m改成:
org.gradle.jvmargs=-Xmx512m然后重新build下就好了。
阅读全文
0 0
- Android Error:Failed to complete Gradle execution.
- Error:Failed to complete Gradle execution.
- Error:Failed to complete Gradle execution.
- Error:Failed to complete Gradle execution. Cause: services.gradle.org
- Failed to complete Gradle execution
- Failed to complete gradle execution.
- Failed to complete Gradle execution
- Failed to complete Gradle execution.........
- Failed to complete gradle execution
- Android Error:Failed to complete Gradle execution. 错误解决办法
- Android Studio Failed to complete Gradle execution
- 【解决】failed to complete gradle execution问题
- Android Studio Failed to complete Gradle execution
- Android导入包报错问题Failed to complete Gradle Execution Cause: error in opening zip file.
- Error:Failed to complete Gradle execution. Cause: Unknown command-line option '-X'解决方法
- Error:Failed to complete Gradle execution. Cause: Unknown command-line option '-X'
- android studio 2.3.3 编译出错Error:Failed to complete Gradle execution
- Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (2.14.1) does
- 用Java实现将一个字符串中的空格换成%20
- 【PAT】【Advanced Level】1103. Integer Factorization (30)
- 解决方案--爬虫拿到的HTML和浏览器中的源码不相同
- 测试的简单基本流程
- SQL insert 语句
- Error:Failed to complete Gradle execution.
- 云上建站快速入门:博客、论坛、CMS、电子商务网站统统搞定
- 文章标题
- BOSCH协议
- iOS 05-使用AFNetworking框架创建下载任务
- 【机器学习系列2】FPGrowth算法与spark实现
- redis误操作flushall或者flushdb
- Vue2.x中的Render函数详解
- 练习题1(17.9.7)