hi recently i started get some crashes and when i looked up for it i found this
java.lang.OutOfMemoryError
FATAL EXCEPTION: Thread-1159
Process: com.packagename.example, PID: 4627
java.lang.OutOfMemoryError
at android.graphics.Bitmap.nativeCreateFromParcel(Native Method)
at android.graphics.Bitmap.access$000(Bitmap.java:34)
at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:1540)
at android.graphics.Bitmap$1.createFromParcel(Bitmap.java:1532)
at android.app.IUiAutomationConnection$Stub$Proxy.takeScreenshot(IUiAutomationConnection.java:224)
at android.app.UiAutomation.takeScreenshot(UiAutomation.java:599)
at androidx.test.tools.crawler.platform.common.Utils.takeScreenshot(Utils.java:77)
at androidx.test.tools.crawler.platform.RemotePlatform.handleTakeScreenshot(RemotePlatform.java:31)
at androidx.test.tools.crawler.platform.RemotePlatform.messageLoop(RemotePlatform.java:61)
at androidx.test.tools.crawler.platform.RemotePlatform.lambda$startCrawlAndWaitUntilFinished$0$RemotePlatform(RemotePlatform.java:43)
at androidx.test.tools.crawler.platform.RemotePlatform$$Lambda$0.run(Unknown Source)
at java.lang.Thread.run(Thread.java:841)
is there any way to avoid it in the future ? it happenes for android 5 and below