Unity Failed to Build: the SDK is read only and Gradle build failed

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU)

As Google puts out new revs, important features like Notifications require us to keep up with the API. This particular error (in the Stdout post) indicates that the minimum API Level needs to be at least API 33 (Tiramisu). This does mean that devices not running Android 13 or higher will not be able to use the app.

Unfortunately, with this requirement, we have to manually edit permissions for Notifications

C:\Unity Projects\Simple Driving\Library\Bee\Android\Prj\Mono2x\Gradle\unityLibrary\src\main\java\com\unity\androidnotifications\UnityNotificationManager.java:165: error: cannot find symbol
            permissionGranted = mContext.checkCallingOrSelfPermission(Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED;
                                                                                         ^
  symbol:   variable POST_NOTIFICATIONS

This is telling you that the POST_NOTIFICATIONS was not found in the Manifest.
For instructions on editing the manifest, follow this link: Unity - Manual: Declare permissions for an application

Privacy & Terms