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

Package: Analytics

-

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)

  1. Resolution Note (fix version 2.0.7-pre.7):

    Fixed in: 2.0.7-pre.7

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.