Please help me with this error! I can't release my game because of it!

For the past week I’ve been trying to make the final build for my game. When I make a build I get a pop up.
8934354--1225014--upload_2023-4-7_16-20-20.png
This stops my game from finishing.
This is the console log:


I’m using jdk 1.8.0_77.
If ANYONE knows ANYTHING, please tell me! I NEED THIS FIXED!

I mean, if anyone even does know anything. It’s been 5 days of me trying to make a build. I may as well delete my game if I can’t succeed.

Unrecognized Attribute name MODULE
This can be resolved by upgrading your Android Plugin and Gradle plugin versions to >= 4.1.0 and >=6.1.1 respectively.
First find out what versions you have and share unity version too.

To upgrade gradle plugin, you can download 6.1.1 from here. Once after downloading point the folder for external tools → gradle path entry.

After it change the android plugin version by enabling custom gradle templates and change the version to 4.1.1.

Let us know if you hit any blockers.