Android Error:Failed to complete Gradle execution.
2017-01-08 22:11
471 查看
Android Studio 从另一台PC 拷贝过来的项目,导入出错。纠结了两天~ -_-!
错误代码如下:
因为每台PC 上的 AS 配置不同,可能会导致出现上面的情况。
而我这里的原因是,在gradle.properties 文件里 JVM 配置出错。
(相对于拷贝项目的AS配置 (╯▽╰)~ )
所以,找到原因,解决就好办了,
(最后别忘了, 要 Clean Project 哦~)
上图:
备注:每个人遇到此类 问题的解决方法不尽相同,这里仅作为参考使用~
若问题未解决,请参考(写的比较详细):
http://www.myexception.cn/ai/1931604.html
错误代码如下:
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.10/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
因为每台PC 上的 AS 配置不同,可能会导致出现上面的情况。
而我这里的原因是,在gradle.properties 文件里 JVM 配置出错。
(相对于拷贝项目的AS配置 (╯▽╰)~ )
org.gradle.jvmargs=-Xmx1536m
所以,找到原因,解决就好办了,
1. 注释或删除这行就好了~ (使用默认配置) 2. 修改成: org.gradle.jvmargs=-Xmx512m
(最后别忘了, 要 Clean Project 哦~)
上图:
备注:每个人遇到此类 问题的解决方法不尽相同,这里仅作为参考使用~
若问题未解决,请参考(写的比较详细):
http://www.myexception.cn/ai/1931604.html
相关文章推荐
- Android Error:Failed to complete Gradle execution. 错误解决办法
- Android Studio Failed to complete Gradle execution 解决方法
- Error:Failed to complete Gradle execution.
- Error:Failed to complete Gradle execution.
- Error:Failed to complete Gradle execution. Cause: Unknown command-line option '-X'解决方法
- AndroidStudio Failed to complete Gradle execution
- android studio 2.3.3 编译出错Error:Failed to complete Gradle execution
- Android Studio新体验之android failed to complete gradle execution a fatal exception has occurred
- Android Studio Failed to complete Gradle execution
- AndroidStudio 更新gradle Error:Failed to complete Gradle execution. Cause: Connection reset
- Android Studio 报错: Failed to complete Gradle execution
- 【解决】failed to complete gradle execution问题
- android studio DEX 方法超过64K限制和gradle编译OOM问题解决,异常名:Error:Execution failed for task ':app:dexDebug'. >
- 解决android studio Error:Failed to open zip file. Gradle's dependency
- androidstudio 报Failed to complete Gradle execution.Cause: Unknown command-line option '-x'错误的解决方法
- DEX 方法超过64K限制和gradle编译OOM问题解决,异常名:Error:Execution failed for task ':app:dexDebug'. > com.android.ide
- Android Studio Gradle Running报错:Failed to complete Gradle execution.
- Android问题集锦之四十七: Error:Execution failed for task ':app:packageRelease'. > Unable to compute hash of
- Failed to complete Gradle execution
- Android Studio 报错: Failed to complete Gradle execution