Search Issue Tracker
Fixed in 2.0.7-pre.7
Votes
0
Found in [Package]
2.0.7-pre.6
Issue ID
1367201
Regression
No
WebGL build fails when Analytics package is included
Reproduction steps:
1. Open the attached project ("1367201_22.1.0a13.zip")
2. Switch Platform to WebGL
3. Build and Run the project
Expected result: Project builds and runs successfully
Actual result: Build fails with errors:
Library/PackageCache/com.unity.services.analytics@2.0.7-pre.6/Runtime/DataPrivacy/DataPrivacyButton.cs(11,10): error CS0246: The type or namespace name 'DllImportAttribute' could not be found (are you missing a using directive or an assembly reference?)
Library/PackageCache/com.unity.services.analytics@2.0.7-pre.6/Runtime/DataPrivacy/DataPrivacyButton.cs(11,10): error CS0246: The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?)
Reproducible with: 2.0.7-pre.6 (2019.4.32f1, 2020.3.22f1, 2021.2.2f1, 2022.1.0a13)
Not reproducible with: 2.0.7-pre.7 (2019.4.32f1, 2020.3.22f1, 2021.2.2f1, 2022.1.0a13)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2.0.7-pre.7):
Fixed in: 2.0.7-pre.7