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
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"
Comments (4)
-
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 -
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.
-
MoctezumaDev
Aug 01, 2019 11:54
I also have this issue in version 2019.1.12f
-
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
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.