Search Unity

`Advertisements' does not exist in the namespace `UnityEngine' 5.5.0b3 Android

Discussion in 'Unity Build Automation' started by Mison, Sep 21, 2016.

  1. Mison

    Mison

    Joined:
    Jan 20, 2014
    Posts:
    19
    I can't build my Android game on Cloud Build because of an error: CS0234: The type or namespace name `Advertisements' does not exist in the namespace `UnityEngine'. Are you missing an assembly reference?
    It is an Android build in the latest 5.5 beta (b3 in this build). Everything works fine in editor.
     
  2. leonardseymore

    leonardseymore

    Joined:
    Aug 28, 2013
    Posts:
    1

    I'm getting the same problem, but with 5.4. It was working fine and just stopped working, don't know where to go for help...*sigh*
     
  3. Mison

    Mison

    Joined:
    Jan 20, 2014
    Posts:
    19
    I am not exactly sure, but my opinion is that this happens when you build with a different version of Unity than the one you saved your project in. It happened to me again few days ago after updating my project to Unity 5.5.0f3 (in Editor) and then committing to source control and building with Cloud Build (Unity version: Always Use Latest 5.x) which used Unity 5.4.3f1.
     
  4. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238