Search Issue Tracker

By Design

Votes

0

Found in

2018.3.0b10

2019.1.0a10

2019.1.0a13

Issue ID

1113219

Regression

Yes

DataPrivacy scripts compilation errors when disabling Unity Analytics package

Analytics

-

How to reproduce:
1. Create a new Unity project
2. Open the "Package Manager" window
3. Disable the "Unity Analytics" package

Expected result: Disabling the "Unity Analytics" package does not cause compilation errors.
Actual result: There are some compilation errors after disabling the "Unity Analytics" package.

Reproducible with - 2018.3.0b10, 2018.3.1f1, 2019.1.0a10, 2019.1.0a13
Not reproducible with - 2018.3.0b9, 2019.1.0a9

Errors thrown:
- "Library\PackageCache\com.unity.analytics@3.2.2\DataPrivacy\DataPrivacyButton.cs(47,17): error CS0103: The name 'RemoteSettings' does not exist in the current context"
- "Library\PackageCache\com.unity.analytics@3.2.2\DataPrivacy\DataPrivacy.cs(42,26): error CS0103: The name 'AnalyticsSessionInfo' does not exist in the current context"
- "Library\PackageCache\com.unity.analytics@3.2.2\DataPrivacy\DataPrivacy.cs(43,29): error CS0103: The name 'AnalyticsSessionInfo' does not exist in the current context"

  1. Resolution Note (2019.2.X):

    Unity Analytics has to be turned off using the Services window, it should not be disabled through the Package Manager.

Comments (4)

  1. Novack

    Oct 27, 2020 18:05

    Im also getting this error after enabling IAP package and then Analytics package from manager (with both services activated on Project Settings).

    Unity 2020.1.2f1
    Analytics Library 3.5.3
    In App Purchasing 2.1.1

  2. MoctezumaDev

    Aug 01, 2019 13:24

    I found a solution:

    "com.unity.modules.unityanalytics": "1.0.0"

    The following line is not being added to the manifest.json if one reinstalls the package.

    I added it per hand and the errors are gone.

  3. MoctezumaDev

    Aug 01, 2019 11:54

    I also have this issue in version 2019.1.12f

  4. biodam

    Jul 30, 2019 20:38

    "RESOLUTION NOTE (FIX VERSION 2019.2):
    Unity Analytics has to be turned off using the Services window, it should not be disabled through the Package Manager"

    What's the point to modularize as packages internal modules such as physics and others if some of then you just can't turn off?

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.