相关疑难解决方法(0)

Gradle 恶魔启动了数百个虚拟机

安卓工作室 4.1.1 版

摇篮版本 6.5

Android Gradle 插件版本 4.1.0

开始构建我的 android 应用程序,我得到:

Starting Gradle Daemon...
Gradle Daemon started in 2 s 29 ms
Starting Gradle Daemon...
Gradle Daemon started in 1 s 965 ms
Starting Gradle Daemon...
Gradle Daemon started in 1 s 996 ms
Starting Gradle Daemon...
Gradle Daemon started in 1 s 992 ms
Starting Gradle Daemon...
Gradle Daemon started in 1 s 995 ms
Run Code Online (Sandbox Code Playgroud)

每个人都启动了一个单独的虚拟机,每个虚拟机大约 30 mb,一直这样,直到我的 16 Gb 内存耗尽。第一次发生时,我不得不切断电源......

并且 VM 及其内存消耗在关闭 Android Studio 后仍然存在。我必须手动终止进程。有人经历过类似的事情吗?我如何解决它?我不能再构建我的项目了。尝试使用环境或配置文件禁用 gradle …

android gradle

5
推荐指数
1
解决办法
253
查看次数

Android Studio:Gradle 执行失败。原因:管道破裂

每当我在 android-studio 中构建/运行我的 android 项目时,我都会收到一个消息框:Failed to complete Gradle execution.Cause: Broken pipe然后旧版本的应用程序开始在我的设备上运行。我尝试清理该项目,但收到相同的消息。我尝试了这里的解决方案,但没有帮助。我也尝试了这里的解决方案。我得到以下命令的输出gradlew compileDebug --stacktrace --info

Task 'compileDebug' is ambiguous in root project 'Wifi'. Candidates are: 'compileDebugAidl', 'compileDebugJava', 'compileDebugNdk', 'compileDebugRenderscript', 'compileDebugTestAidl', 'compileDebugTestJava', 'compileDebugTestNdk', 'compileDebugTestRenderscript'.

* Try:                      
Run gradlew tasks to get a list of available tasks. Run with --debug option to get more log output.

* Exception is:             
org.gradle.execution.TaskSelectionException: Task 'compileDebug' is ambiguous in root project 'Wifi'. Candidates are: 'compileDebugAidl', 'compileDebugJava', 'compileDebugNdk', 'compileDebugRenderscript', 'compileDebugTestAidl', …
Run Code Online (Sandbox Code Playgroud)

android android-studio

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×2

android-studio ×1

gradle ×1