I know this error is already everywhere on the internet, but all the fixes I tried didn't work.
I tried to change the value in gradle.properties from -Xmx2048m to -Xmx512m, -Xmx1024m but they both didn't work.
When i enter "cordova run android" it just changes back to -Xmx2048m.
Here is the error message I'm getting:
The java version I am running: "1.8.0_291"
Gradle version: "7.1.1"
Can someone please help me fix this, because I'm really lost.