c# – Unity error at the export. How kann i fix it?

Apparently there is a problem in the indicated path.
In such cases, perhaps it is better to uninstall the android export package and re-download it.
To do this go to the file: Files / Unity / Hub / Editor / 2021.3.6f1 / Editor / Data / modules.json.
In this file, find the section with the camo id equal to “android” and set the selected field to false.
Do the same for the sections with the ids “android-sdk-ndk-tools”, “android-sdk-platform-tools”, “android-sdk-build-tools” android-sdk-platforms-29 “,” android -sdk-platforms-30 “,” android-ndk “,” android-open-jdk “. Basically all those related to Android.
Then in the Files / Unity / Hub / Editor / 2021.3.6f1 / Editor / Data / PlaybackEngines folder, delete the Android player.
Restart Unity and Unity Hub and from Unity Hub you will be able to re-download the Android modules.
For prevention make a copy of the Files / Unity / Hub / Editor / 2021.3.6f1 / Editor / Data folder and maybe even the project, if something goes wrong …
If the problem continues, it probably means there is some setting changed in the build settings.

Read more here: Source link