Hello,
I am trying to publish my game on Cloud Build. It publishes fine locally (under ‘Build & Run’), but I keep on getting errors when I try and publish it on Cloud Build, and it is more likely because of unknown namespaces or functions of namespaces. I don’t understand what the problem exactly is because when I import packages (such as ‘utility’), it should be automatically ‘compatible’ with the Cloud Build, but it isn’t. If I ‘comment out’ the part(S) of the code that causes the errors, or delete the .cs file that COMES with the built-in packages. I get even MORE errors. Here are the kinds of errors I keep on getting in Cloud development. What can be done? Thanks.
…
: [Unity] Initialize engine version: 5.3.8f1 (9886e74732cf)
2: [Unity] -----CompilerOutput:-stdout–exitcode: 1–compilationhadfailure: True–outfile: Temp/Assembly-CSharp.dll
3: [Unity] Compilation failed: 6 error(s), 9 warnings
4: [Unity] Assets/Scripts/Attach scripts/DoorAttacher.cs(19,28): warning CS0219: The variable child' is assigned but its value is never used 5: [Unity] Assets/Scripts/Attach scripts/DoorAttacher.cs(66,28): warning CS0219: The variable child’ is assigned but its value is never used
6: [Unity] Assets/Scripts/Attach scripts/PanelAttacher.cs(33,28): warning CS0219: The variable child' is assigned but its value is never used 7: [Unity] Assets/Scripts/Attach scripts/PanelAttacher.cs(88,28): warning CS0219: The variable child’ is assigned but its value is never used
8: [Unity] Assets/Scripts/Attach scripts/RoomAttacher.cs(166,28): warning CS0219: The variable child' is assigned but its value is never used 9: [Unity] Assets/Scripts/Attach scripts/RoomAttacher.cs(209,28): warning CS0219: The variable child’ is assigned but its value is never used
10: [Unity] Assets/Scripts/Attach scripts/StairAttacher.cs(28,28): warning CS0219: The variable child' is assigned but its value is never used 11: [Unity] Assets/Scripts/Attach scripts/StairAttacher.cs(75,28): warning CS0219: The variable child’ is assigned but its value is never used
12: [Unity] Assets/Scripts/Attach scripts/WorldAttacher.cs(417,28): warning CS0219: The variable `child’ is assigned but its value is never used
…
13: [Unity] Assets/Scripts/Bible/Bible.cs(6170,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
14: [Unity] /UNITY_PATH/Unity/Unity-5_3_8f1/Unity.app/Contents/Managed/UnityEngine.dll (Location of the symbol related to previous error)
15: [Unity] Assets/Scripts/Bible/Bible.cs(6176,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
16: [Unity] /UNITY_PATH/Unity/Unity-5_3_8f1/Unity.app/Contents/Managed/UnityEngine.dll (Location of the symbol related to previous error)
17: [Unity] Assets/Scripts/Bible/Bible.cs(6181,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
18: [Unity] /UNITY_PATH/Unity/Unity-5_3_8f1/Unity.app/Contents/Managed/UnityEngine.dll (Location of the symbol related to previous error)
19: [Unity] Assets/Scripts/Bible/Bible.cs(6187,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
20: [Unity] /UNITY_PATH/Unity/Unity-5_3_8f1/Unity.app/Contents/Managed/UnityEngine.dll (Location of the symbol related to previous error)
21: [Unity] Assets/Scripts/Bible/Bible.cs(6192,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
22: [Unity] /UNITY_PATH/Unity/Unity-5_3_8f1/Unity.app/Contents/Managed/UnityEngine.dll (Location of the symbol related to previous error)
23: [Unity] Assets/Scripts/Bible/Bible.cs(6197,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
…
24: [Unity] /UNITY_PATH/Unity/Unity-5_3_8f1/Unity.app/Contents/Managed/UnityEngine.dll (Location of the symbol related to previous error)
25: [Unity] Assets/Scripts/Attach scripts/DoorAttacher.cs(19,28): warning CS0219: The variable child' is assigned but its value is never used 26: [Unity] Assets/Scripts/Attach scripts/DoorAttacher.cs(66,28): warning CS0219: The variable child’ is assigned but its value is never used
27: [Unity] Assets/Scripts/Attach scripts/PanelAttacher.cs(33,28): warning CS0219: The variable child' is assigned but its value is never used 28: [Unity] Assets/Scripts/Attach scripts/PanelAttacher.cs(88,28): warning CS0219: The variable child’ is assigned but its value is never used
29: [Unity] Assets/Scripts/Attach scripts/RoomAttacher.cs(166,28): warning CS0219: The variable child' is assigned but its value is never used 30: [Unity] Assets/Scripts/Attach scripts/RoomAttacher.cs(209,28): warning CS0219: The variable child’ is assigned but its value is never used
31: [Unity] Assets/Scripts/Attach scripts/StairAttacher.cs(28,28): warning CS0219: The variable child' is assigned but its value is never used 32: [Unity] Assets/Scripts/Attach scripts/StairAttacher.cs(75,28): warning CS0219: The variable child’ is assigned but its value is never used
33: [Unity] Assets/Scripts/Attach scripts/WorldAttacher.cs(417,28): warning CS0219: The variable `child’ is assigned but its value is never used
…
34: [Unity] Exception: The classes in the module cannot be loaded.
35: [Unity] API Updater: Exception verifying member: InitStateException: The classes in the module cannot be loaded.
36: [Unity] Assets/Scripts/Bible/Bible.cs(6170,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
37: [Unity] Exception: The classes in the module cannot be loaded.
38: [Unity] API Updater: Exception verifying member: InitStateException: The classes in the module cannot be loaded.
39: [Unity] Assets/Scripts/Bible/Bible.cs(6176,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
40: [Unity] Exception: The classes in the module cannot be loaded.
41: [Unity] API Updater: Exception verifying member: InitStateException: The classes in the module cannot be loaded.
42: [Unity] Assets/Scripts/Bible/Bible.cs(6181,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
43: [Unity] Exception: The classes in the module cannot be loaded.
44: [Unity] API Updater: Exception verifying member: InitStateException: The classes in the module cannot be loaded.
45: [Unity] Assets/Scripts/Bible/Bible.cs(6187,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
46: [Unity] Exception: The classes in the module cannot be loaded.
47: [Unity] API Updater: Exception verifying member: InitStateException: The classes in the module cannot be loaded.
48: [Unity] Assets/Scripts/Bible/Bible.cs(6192,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
49: [Unity] Exception: The classes in the module cannot be loaded.
50: [Unity] API Updater: Exception verifying member: InitStateException: The classes in the module cannot be loaded.
51: [Unity] Assets/Scripts/Bible/Bible.cs(6197,28): error CS0117: UnityEngine.Random' does not contain a definition for InitState’
…
