Android 13 - Target -33 Build -

Hi
After publishing the app to android play store with target 33(Android 13).

Under app crashes and ANR page, app got these below error, How we need to duplicate and fix it.

java.lang.OutOfMemoryError
Exception java.lang.OutOfMemoryError:
at java.util.Arrays.copyOf (Arrays.java:3766)
at java.lang.AbstractStringBuilder.ensureCapacityInternal (AbstractStringBuilder.java:125)
at java.lang.AbstractStringBuilder.append (AbstractStringBuilder.java:650)
at java.lang.StringBuilder.append (StringBuilder.java:203)
at org.json.JSONTokener.nextString (JSONTokener.java:229)
at org.json.JSONTokener.nextValue (JSONTokener.java:111)
at org.json.JSONTokener.readArray (JSONTokener.java:440)
at org.json.JSONTokener.nextValue (JSONTokener.java:107)
at org.json.JSONArray. (JSONArray.java:94)
at org.json.JSONArray. (JSONArray.java:110)
at org.apache.cordova.file.FileUtils$25.run (FileUtils.java:713)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:637)
at java.lang.Thread.run (Thread.java:1012)

I think the biggest clues here are the fact that we see all the org.json calls after the call the the Cordova FileUtils. Are you processing/parsing JSON files? If so I suspect one is corrupt, or simply too big to process in memory.