Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Build Error (Please Decode)

Discussion in 'Windows' started by MrEsquire, May 26, 2014.

  1. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Hi all,

    This is my first attempt to compile on Windows 8 phone, the project is all done, but once I try and build I get the below error message.
    I'm usually good at decoding issues and will use Google to help, but I'm not sure what the coding issue is here. It's strange because I'm using a generic game kit and one user of the kit has been able to successful publish there game on Windows Mobile 8.

    Any help much appreciate and thank you.

    Code (csharp):
    1. Error building Player: Exception: Error: method `System.Object System.String::Clone()` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void AnimationStateMachine::OnGUI_PerControl().
    2. Error: type `System.Collections.Generic.SortedList`2` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    3. Error: type `System.Collections.Generic.SortedList`2` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    4. Error: method `System.Void System.Collections.Generic.SortedList`2<System.Int32,System.Collections.Generic.List`1<UnityEngine.AnimationState>>::.ctor(System.Collections.Generic.IComparer`1<!0>)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    5. Error: type `System.Collections.Generic.SortedList`2` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    6. Error: method `System.Boolean System.Collections.Generic.SortedList`2<System.Int32,System.Collections.Generic.List`1<UnityEngine.AnimationState>>::ContainsKey(!0)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    7. Error: type `System.Collections.Generic.SortedList`2` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    8. Error: method `System.Void System.Collections.Generic.SortedList`2<System.Int32,System.Collections.Generic.List`1<UnityEngine.AnimationState>>::Add(!0,!1)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    9. Error: type `System.Collections.Generic.SortedList`2` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    10. Error: method `!1 System.Collections.Generic.SortedList`2<System.Int32,System.Collections.Generic.List`1<UnityEngine.AnimationState>>::get_Item(!0)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    11. Error: type `System.Collections.Generic.SortedList`2` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    12. Error: method `System.Collections.Generic.IEnumerator`1<System.Collections.Generic.KeyValuePair`2<!0,!1>> System.Collections.Generic.SortedList`2<System.Int32,System.Collections.Generic.List`1<UnityEngine.AnimationState>>::GetEnumerator()` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at AnimationStateMachine/RootMotionResult AnimationStateMachine::_CalculateRootMotion().
    13.  
     
  2. chechoggomez

    chechoggomez

    Unity Technologies

    Joined:
    Feb 25, 2013
    Posts:
    91
    Hey MrEsquire, have a look here : https://docs.unity3d.com/Documentation/Manual/windowsstore-gettingstarted.html

    "On Windows Store platform we don't use Mono, we use Microsoft's .NET together with WinRT, because of this major change comparing to other Unity platforms some of the API may not yet work, but ~95% of API does work"

    which also applies for WP8

    https://docs.unity3d.com/Documentation/Manual/wp8-gettingstarted.html

    So System.Collections is a missing namespace and System.String::Clone() does not exist for WP8 :

    http://msdn.microsoft.com/en-us/library/windowsphone/develop/system.string_methods(v=vs.105).aspx
     
  3. MrEsquire

    MrEsquire

    Joined:
    Nov 5, 2013
    Posts:
    2,712
    Hi checho,

    Thanks for the detailed reply, without trying to push it - do you know a best solution, I do admit I'm no programming expert.
    So you would say one will need to make changes to script file for a workaround maybe?
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    You will definitely need to make changes to your scripts that are causing the issue - the error messages state the methods that are troublesome.