Android Project Packaging Error

Hey! I’m just trying to package the Default Third Person Template for Android Mobile. But it’s giving an error saying ERROR: cmd.exe failed with args /c “D:\UE4 Files\MobileGame\Intermediate\Android\armv7\gradle\rungradle.bat” :app:assembleDebug.

I searched online and got a solution that everyone’s saying is to delete the Intermediate folder. I tried it, tried to delete the Android folder, tried to delete gradle and even tried to delete rungradle.bat but nothing worked. I’m getting the same error message again and again.

I’m on Unreal Engine 4.26, using Android Studio Version 4.0. What should I do now to fix it?