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
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
- Error "InvalidOperationException: You are trying to read Input using the UnityEngine.Input class, but you have switched active Input handling to Input System package in Player Settings." is present when using UI Toolkit and New Input System
- "Unable to get the list of approved APIs." is thrown when testing the App Packages with Windows App Certification Kit
- [Linux] The mouse wheel input is inverted when scrolling in the Build
- TMP Input Field is moving Text and Caret UI positions for each new line when 'Auto Size' and 'Multi Line Newline' are used
Resolution Note (fix version 2.0.7-pre.7):
Fixed in: 2.0.7-pre.7