Android Build Not Working

I do not understand why, but my pc will not allow me to package for android, like it just refuses to. I will attach part of the packaging log where it says that it went wrong. Can anyone please help me? Any help will be be appreciated. I have androud studio 4.0 installed with android 19 and up, with the ndk 21.1.6352462 installed. I dont understand why this isnt working.

UATHelper: Packaging (Android (ETC2)): > Task :app:compileReleaseJavaWithJavac FAILED UATHelper: Packaging (Android (ETC2)): FAILURE: Build failed with an exception. UATHelper: Packaging (Android (ETC2)): * What went wrong: UATHelper: Packaging (Android (ETC2)): Execution failed for task ‘:app:compileReleaseJavaWithJavac’. UATHelper: Packaging (Android (ETC2)): > Compilation failed; see the compiler error output for details. UATHelper: Packaging (Android (ETC2)): * Try: UATHelper: Packaging (Android (ETC2)): Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. UATHelper: Packaging (Android (ETC2)): * Get more help at https://help.gradle.org