@saiki These errors are related to your Unity Editor configuration. You may have better luck searching the Unity Forum or community for answers to these questions as they are more specific to Unity Android development than Magic Leap 2. You can also try setting the target Android API version to version 29 instead of 30.
Error 1 suggest that the Android SDK is read-only, which usually indicates a permissions issue. You may be able to resolve this by:
- Run Unity as an Administrator to ensure it has the necessary permissions to modify the SDK files.
- Reinstall the Android SDK through Unity Hub and ensure that the ‘Android Build Support’ module is installed correctly.
Error 2 suggests that the Android SDK Platform 30 license has not been accepted.
- Open Android Studio or the Android SDK Manager.
- Accept the licenses for the required packages (including Android SDK Platform 30). And possibly install the packages for platform 29.
Error 3 indicates that the Gradle build process failed and is a consequence of the previous errors. Once you've resolved the licensing and permission issues, this error should disappear.
You may want to try to install a new Unity Editor version and install Android Build support directly from the Unity Hub Installer. Once installed, you can use the default Unity Android tools by going to Edit > Preferences > External Tools and making sure that the NDK, SDK and JDK paths all point to the ones that were installed with Unity.