I'm trying to run an app but I have no idea why it's not working. I'm getting this error in the first line in the console:
java.lang.OutOfMemoryError: Failed to allocate a 498534412 byte allocation with 4194304 free bytes and 331MB until OOM
After picking an USB connected Android or emulator, it says unfortunately, app has stopped.
I have no idea where to go from here.