Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Click the Build button in File > Build Settings window
Expected result: Build succeeds
Actual result: Build fails with error “no matching function for call to 'CachePermissions_set_Role_mA21789CE06ADB42CFC944AA1C01ECB4D469C3C8E'“
Reproducible with: 2021.3.30f1, 2022.3.9f1, 2023.1.13f1, 2023.2.0b9, 2023.3.0a5
Reproducible on: Windows 10 Enterprise 21H2 (Windows Standalone - IL2CPP, Android Platform - IL2CPP)
Not reproducible on: Windows 10 Enterprise 21H2 (Windows Standalone - Mono, Android Platform - Mono)
Note:
- The user has a plugin that is using protobuf. This plugin generates some classes and enums that are used in their SDK. When doing an assignment on an object and trying to Build the project with the Android platform, the above error appears in the Console window