Android build compiling error.
I made a VERY easy Android game (2 pictures and a move control). It told me the following error when I compile it:
C:/Users/Administrator/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?
The missing namespace also include Editor
and SerializedProperty
Plus another error:
C:/Users/Administrator/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
I had uninstalled the old Unity and downloaded the newest one from Unity and a different Android SDKs with no avail!
Could somebody PLEASE help me out please!? Thank you very VERY much! God bless you!!!
Answer by dandmixer · Jul 20, 2018 at 05:40 PM
This error is everywhere, and in fact I haven't seen anyone who has been actually able to make Unity work with Android. There are about 6 different ways everyone says work, but they actually don't, and when you push it, nobody can offer any proof that they were able to get unity to build to Android.
I'm looking for another platform to work with as Unity is completely broken at the moment. If you find something that uses C#, let me know!
Answer by AsurZar · Oct 01, 2021 at 07:27 AM
"#if UNITY_EDITOR" for editor code, Android build will ignore them
Your answer
Follow this Question
Related Questions
how do i fix all compiler errors so i can enter playmode? 4 Answers
project didnt work on android, but it works on unity 0 Answers
Aspect ratio help android 0 Answers
android build problem 0 Answers
Voxel Busters Plugin & Admob build crash 0 Answers