# android

03/12/2020, 3:47 PM
Hi guys. I am not sure here is the right channel to ask, but could you help a question. After update to use Android Gradle Plugin 3.6.1, our unit test keeps getting
exception.  It happens on the building phrase with this task
We have multiple modules, and OOM error occurs randomly I can fix the issue by increasing the gradle max-heap size, but it’s not a good option because we ’re very close to the limit of the hardware.  So far, what I have tried are: 1. Update Gradle to 6.2.2 2. Tried to turn on/off grade worker API with `kapt.use.worker.api`&
flags (they are off by now) 3. Play around with some testOptions flags (, for example forkEvery, maxParallelForks. But I am not sure it would help, because the failure happens on the building phrase. Here is the crash log:
Copy code
Caused by: 1 exception was raised by workers:
 java.lang.OutOfMemoryError: GC overhead limit exceeded
   at <|>.CloseableKt.closeFinally(Closeable.kt:53)
The crash happened by this line of code. It will be very appreciated if anyone of you would suggest any solution or direction to investigate. Generate a heapdump is on my plan

Alexey Belkov [JB]

03/16/2020, 12:42 PM
Please report a bug to Android:

03/31/2020, 10:27 AM
hi, thanks for your advice. I already report an issue during the time asking question.