Problem getting started with tutorials in v 2018.2 - lots of CS0122 issues

Dear All, I’m pretty new to Unity and have just installed the latest version - 2018.2. I’ve tried to open one of the tutorial project files - the 01 Play and Edit Mode one, and I’m getting loads of errors in the console - they’re pretty much all the CS0122 “xxxxxx is inaccessible due to its protection level”, with occasional CS1061 errors and also

System.MethodAccessException: Method UnityEditor.Build.BuildDefines.add_getScriptCompilationDefinesDelegates(UnityEditor.Build.GetScriptCompilationDefinesDelegate)’ is inaccessible from method UnityEditor.Analytics.AnalyticsImporter…cctor()’ at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_throw_method_access(intptr,intptr) at UnityEditor.Analytics.AnalyticsImporter…cctor () [0x00132] in /home/builduser/buildslave/com.unity.analytics/package/Source/Unity.Analytics.Editor/Importer.cs:49 UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()

So Ive pretty much fallen at the first hurdle with this - is this a known problem - something to do with the latest version perhaps?

all the best

Graham

Add comment

I’m getting the same problem, and it looks like a similar problem is happening in this thread https://forum.unity.com/threads/package-manager-throwing-numerous-errors.608191/

Would like to find a solution! I need this for school!

This might be the Unity3D version issue.
Your project is developed on a higher version of Unity and now trying to open it in a lower version of Unity.

Eg: The project is developed on Unity3D 2018.3.0f1 and now trying to open the same on Unity 2018.2.0f1.

You can resolve this by removing analytics packages from the project. So, open the manifest.json from the Packages folder. then remove the analytics package line from the JSON.

From,

{
  "dependencies": {
    "com.unity.ads": "2.3.1",
    "com.unity.analytics": "3.2.2",
    ...
  }
}

To,

{
  "dependencies": {
    "com.unity.ads": "2.3.1",
    ...
  }
}