using Unity.Services.Core;
using Unity.Services.Analytics;
These lines give an error in Unity, and I think that gives me other errors (that haven’t even been posted online before AFAIA). I checked the Services tab in the Editor and it works. But I can’t seem to import the library and use it in my script. This doesn’t happen in my other projects.
I haven’t created any ASMDEF files to my knowledge but interestingly I am getting this error ever since I imported Facebook SDK and wrote some code for it:
Hmm, looks to me like this might be an issue related to the FB package not being able to be imported properly and thus the rest of the compilation stopping and not making Analytics nor Core available. If you remove the FB package, does the error go away?
I deleted the FacebookSDK package and reinstalled it. It asks me if I want to remove some files but I don’t think it makes any difference to my situation. Either way, it gives me the error:
@FoxAdventures Are you using PlasticSCM as mentioned in the errors? Did you install any Google Play plugins? (second screenshot). You can remove any packages that you are not using. I might suggest you compare to a new/empty project and start there (although many packages are installed by default)
I updated the Unity Editor hoping that might fix it, and then I reinstalled the SDK again, and now it gives this error:
Assembly 'Assets/PlayServicesResolver/Editor/Google.VersionHandlerImpl_v1.2.135.0.dll' will not be loaded due to errors:
Assembly name 'Google.VersionHandlerImpl' does not match file name 'Google.VersionHandlerImpl_v1.2.135.0'
Do you mean the Facebook SDK? We can’t advise on the use of the FB SDK, I can only suggest to try using their latest version https://github.com/facebook/facebook-sdk-for-unity . This does not look related to Unity Analytics.