rungradle.bat error

I have tried to package my project for android but keep getting the same error message. I have tried every youtube video, I have reïnstalled android studio I have followed all the steps to set it up on the Unreal Engine documentation but I still keep getting the same error message. In both 4.26, 4.27 and 5.1.

It keeps giving me …\Intermediate\Android\arm64\gradle\rungradle.bat" :app: assembleDebug

And I was quick with the error message that was given by my java:

As shown it gives me:
Project ‘app’ not found in root project ‘System32’ .

So how can I fix that issue? It persists in every version of the game engine.

Regards,