Since there is a problem of repeated classes when using Unity to export the Android project and package it, it is necessary to check what is wrong.
Enter the command in Terminal:
gradlew :dependencies
After the Android project exported by Unity is opened, it is in the current project name, so you can get all the dependencies under the current project by writing this directly.
But if you want to check the dependency name in an Android project, you can use:
gradlew :app:dependencies
Among them :app
is the project name, the project name in the default project is generally app