Compiler errors

Hello everyone,

Before I start, I just need to say that I’m a beginner at Unity and c# programming, and I am currently using Personal version of Unity 2018.2 for studying purposes. With that out of the way, I am trying to publish .apk (for Android) version of application I’m currently working on, and after I set all the settings in (File-Build Settings-Player settings) and click on build I get following errors, and I don’t know what’s causing any of them:

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreOnboardApi.cs(7,19): error CS0234: The type or namespace name Connect' does not exist in the namespace UnityEditor’. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(4,19): error CS0234: The type or namespace name Connect' does not exist in the namespace UnityEditor’. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(15,40): error CS0246: The type or namespace name `Editor’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(61,17): error CS0246: The type or namespace name `SerializedProperty’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(62,17): error CS0246: The type or namespace name `SerializedProperty’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(63,17): error CS0246: The type or namespace name `SerializedProperty’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(65,17): error CS0246: The type or namespace name `SerializedProperty’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(66,17): error CS0246: The type or namespace name `SerializedProperty’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(67,17): error CS0246: The type or namespace name `SerializedProperty’ could not be found. Are you missing an assembly reference?

C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.xiaomi@1.0.2/XiaomiSupport/Editor/AppStoreSettingsEditor.cs(88,30): error CS0115: `AppStoresSupport.AppStoreSettingsEditor.OnInspectorGUI()’ is marked as an override but no suitable method found to override

Any help would be appreciated,

Thank you in advance.

Solved.

If anyone should get this error, reinstall jdk but specify installation dir to disk:\Java.…, not to disk:\ProgramFiles.…

This doesn’t work because Java creates the folder in \Java\sdk… , but then asks you again where you want to install it, and if you try and point it to this folder it says it can’t because it’s not empty. Literally the only way to get it to install is \Program Files\Java.…

I really wish people would actually try stuff out before they post it as SOLVED.

What?