Search Unity

error: CS1070

Discussion in 'Package Manager' started by eliasrbennett, Jan 3, 2019.

  1. eliasrbennett

    eliasrbennett

    Joined:
    Oct 2, 2018
    Posts:
    1
    please help me, Im trying to publish a game to android and I am getting this error message every time I try to push "build":

    C:/Users/bigbr/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.render-pipelines.core@3.0.0-preview/CoreRP/Camera/CameraSwitcher.cs(5,35): error CS1070: The type `UnityEngine.MonoBehaviour' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.

    I have looked in the package manager and 'core' is not to be found please help!
     
  2. pedro_unity

    pedro_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    161
    Hello @eliasrbennett,

    This is indeed very strange, but the problem seems to reside within the "com.unity.render-pipelines.core@3.0.0-preview" package. Would you be kind enough to provide me some information?
    • What version of Unity are you running?
    • Have you updated com.unity.render-pipelines.core@3.0.0-preview ? It is up to 4.6.0-preview on 2018.3.0b11. Try to see if you can update it.
    Let me know if that helps.

    Cheers,
    Pedro
    Unity STE
     
  3. mghaith92

    mghaith92

    Joined:
    Nov 5, 2018
    Posts:
    1
    Hello ,
    I am having similar problem when trying to build for android using Unity 2018.2.18f1

    -----EndCompilerOutput---------------
    - Finished compile Library/ScriptAssemblies/Unity.TextMeshPro.dll
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TextContainer.cs(14,34): error CS1070: The type `UnityEngine.MonoBehaviour' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TextContainer.cs Line: 14)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_Asset.cs(8,30): error CS1070: The type `UnityEngine.ScriptableObject' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_Asset.cs Line: 8)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_CoroutineTween.cs(32,43): error CS1070: The type `UnityEngine.Events.UnityEvent' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_CoroutineTween.cs Line: 32)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_CoroutineTween.cs(32,43): error CS0307: The Unresolved `UnityEvent<Color>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_CoroutineTween.cs Line: 32)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_CoroutineTween.cs(121,43): error CS0307: The Unresolved `UnityEvent<float>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_CoroutineTween.cs Line: 121)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_Dropdown.cs(92,38): error CS0307: The Unresolved `UnityEvent<int>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_Dropdown.cs Line: 92)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs(77,36): error CS0307: The Unresolved `UnityEvent<string>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs Line: 77)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs(80,38): error CS0307: The Unresolved `UnityEvent<string>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs Line: 80)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs(83,39): error CS0307: The Unresolved `UnityEvent<string>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs Line: 83)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs(86,43): error CS0307: The Unresolved `UnityEvent<string,int,int>' cannot be used with type arguments
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMP_InputField.cs Line: 86)
    C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/MaterialReferenceManager.cs(14,33): error CS1070: The type `UnityEngine.Material' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.
    (Filename: C:/Users/User/AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/MaterialReferenceManager.cs Line: 14)
    Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs(18,50): error CS1070: The type `UnityEngine.MonoBehaviour' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.
    (Filename: Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs Line: 18)
    Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs(44,5): error CS1070: The type `UnityEngine.Texture2D' has been forwarded to an assembly that is not referenced. Enable the built in package 'Core' in the Package Manager window to fix this error.
    (Filename: Assets/Vuforia/Scripts/DefaultInitializationErrorHandler.cs Line: 44)
    DisplayProgressNotification: Build Failed
    Error building Player because scripts had compiler errors
     
  4. okcompute_unity

    okcompute_unity

    Unity Technologies

    Joined:
    Jan 16, 2017
    Posts:
    494
    @mghaith92 The error message tells you explicitly what to do to resolve your issue:

    See the Package Manager UI documentation for more info.

    Regards,

    Pascal