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

Bug Can only build once, then getting errors like: Fields serialized in Editor, class

Discussion in 'Editor & General Support' started by Masegi, Nov 6, 2021.

  1. Masegi

    Masegi

    Joined:
    May 24, 2014
    Posts:
    17
    Hi,

    I can build my project for android without problems ... once. Then i get a lot of errors like this:

    has an extra field 'TargetParameterType' of type 'Doozy.Engine.Events.AnimatorEvent+ParameterType' in the player and thus can't be serialized


    While DoozyUI is here just an example, i get this error for almost all used plugins (maybe all).

    When I close and reopen unity, I can build another time without problem, then this error again.

    I tried this solution but had no success (I added USE_PLATFORM to android project settings)
    https://forum.unity.com/threads/cus...ror-extra-field-can-not-be-serialized.575761/


    Sometimes I also get this one after reopening unity:

    TypeLoadException: Could not resolve type with token 01000085 (from typeref, class/assembly UnityEngine.EventSystems.IEventSystemHandler, UnityEngine.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null).


    Then I have to delete Library folder and its working again after switching plattform ... once.

    I tried alot of different unity versions. I reinstalled almost all plugins atleast once.

    I have a similar code base on a customer project (also with opencv, natcam and so on), and it dont have this problem. So problem has to be in the project files I guess?

    Atm I'm using (all newest version):
    opencv
    stans assets ultimate mobile
    l2 localization
    natdevice
    doozyUi

    and unity 2020.3.22f1
    But I also tried alot of versions between 2018 and 2020.3
     
    Last edited: Nov 6, 2021
  2. Masegi

    Masegi

    Joined:
    May 24, 2014
    Posts:
    17
    nevermind, obfuscator plugin wasnt up to date.