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"
-
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
- “[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 (2019.2.X):
Unity Analytics has to be turned off using the Services window, it should not be disabled through the Package Manager.