从 Android Studio 3.0 Canary 5 升级到 Android Studio 3.0 Beta2 后,Gradle检查任务进入Android Studio失败。
注意:
gradlew.bat check
gradle.properties
(至4GB)的gradle内存错误症状:
testDebugUnitTest
之后停止应用Error:Failed to complete Gradle execution. Cause: unknown.
我尝试更改运行配置并添加了--debug --stacktrace
参数。对数输出也没有用(对我而言)
以下是最后一行(完整版本为here)
12:32:25.559 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.33.1937.1943 completed (1 worker(s) in use)
12:32:25.559 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] build operations: released lock on root.1.33.1937.1943
12:32:25.559 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Resolve files of :m10_android_app:debugUnitTestRuntimeClasspath'
12:32:25.559 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 685: dispatching class org.gradle.launcher.daemon.protocol.BuildEvent
12:32:25.560 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Resolve files of :m10_android_app:debugUnitTestRuntimeClasspath' completed
12:32:25.561 [QUIET] [system.out]
12:32:25.561 [QUIET] [system.out]