Error "armv7\gradle\rungradle.bat :app:assembleDebug" when pakcaging for android

I keep getting this error when packaging for android and I have tried everything I can find online
(Android Studio 3.5.3, 4.0, 4.2.2 (documentation says I need 4.0 and 3.5.3 on the same page btw), run the Android Setup (where I dont get a prompt to accept the license), sdk reinstallation, custom windows environment values)

Does someone know how I can fix it? I’m building for the quest 2 with unreal 4.26

ERROR: cmd.exe failed with args /c "D:\Game Dev\Unreal Projects\[project]\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug

If you need more info let me know.