Search Unity

Cloud Build errors with packages from Packages Manager

Discussion in 'Unity Build Automation' started by LDSdev, Mar 15, 2019.

  1. LDSdev

    LDSdev

    Joined:
    Sep 21, 2018
    Posts:
    8
    Hello, we are having these compile errors since MAR 12, 2019 10:50:17 PM using library_latest2018_3 on standalonewindows64. We had previous build working fine on MAR 12, 2019 4:34:27 PM. We also compile on standaloneosxuniversal using library_latest2018_3 and we do not have these errors:

    Code (CSharp):
    1. 2558: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Unity.Analytics.DataPrivacy.dll
    2. 2559: [Unity] Library/PackageCache/com.unity.analytics@3.2.2/DataPrivacy/DataPrivacyButton.cs(3,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    3. 2560: [Unity] Library/PackageCache/com.unity.analytics@3.2.2/DataPrivacy/DataPrivacyButton.cs(7,38): error CS0246: The type or namespace name 'Button' could not be found (are you missing a using directive or an assembly reference?)
    4. 2561: [Unity] -----CompilerOutput:-stdout--exitcode: 1--compilationhadfailure: True--outfile: Temp/Unity.TextMeshPro.dll
    5. 2562: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TextContainer.cs(2,19): error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    6. 2563: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TextMeshPro.cs(5,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    7. 2564: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TextMeshProUGUI.cs(6,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    8. 2565: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TextMeshProUGUI.cs(7,19): error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    9. 2566: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TextMeshProUGUI.cs(8,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    10. 2567: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_DefaultControls.cs(3,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    11. 2568: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_Dropdown.cs(5,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    12. 2569: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_Dropdown.cs(7,19): error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    13. 2570: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_Dropdown.cs(8,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    14. 2571: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_InputField.cs(9,19): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    15. 2572: [Unity] Library/PackageCache/com.unity.textmeshpro@1.3.0/Scripts/Runtime/TMP_InputField.cs(11,19): error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
    (...)

    By the look of the traces, it does not look in our code. Also, we can build and run locally a stand alone build on 2018.3.8f1 on standalonewindows64 using the same source.

    Any hint on what is going on?
     
  2. LDSdev

    LDSdev

    Joined:
    Sep 21, 2018
    Posts:
    8
    FYI, I filled a ticket regarding this issue. Here is the problem and fix that was done by the Unity Support Team:

    I suspect that this issue was caused by a corrupt cached library. I have done a "Clean Build" of your Windows x64 target and it has now built successfully.

    So here it is, Clean Build! I never thought about doing it.
     
    ollieblanks likes this.