Hello everyone, I encountered errors when compiling the Android application. I’ll leave them below. I tried to run unity as an administrator, deleted Mobile Notification - it didn’t help
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\build-tools\32.0.0\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platform-tools\package.xml. Probably the SDK is read-only
Exception while marshalling C:\Program Files\Unity\Hub\Editor\2022.3.7f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\platforms\android-31\package.xml. Probably the SDK is read-only
Can you try one of the following and update if any is working?
Try once right-clicking the SDK folder and give permissions to all (Properties → Security tab)
or
Delete android-31, build-tools/32.0.0 folders and try setting API 34 from player settings in unity and try upgrading android sdk when prompted once you make a build.
What ever the case it is (either works or not) please update so that can suggest you few more. Unfortunately, I couldn’t reproduce this issue on my end but this is an issue happening for many and there is no single solution!