Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bug Unity2021.3.12f1 Build Android Il2CPP Error

Discussion in 'Entity Component System' started by fgLxy, Nov 3, 2022.

  1. fgLxy

    fgLxy

    Joined:
    Feb 21, 2022
    Posts:
    12
    Internal build system error. BuildProgram exited with code -2146233071.
    System.MissingFieldException: Field not found: 'Unity.Linker.Api.LinkRequest.EnableAnalytics'.
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.LinkRequestFor(LinkerConfig linkerConfig, NPath inputDirectory, NPath outputDirectory)
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupUnityLinker()
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.SetupPlayerBuild()
    at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild()
    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
    at PlayerBuildProgramTypeWrapper.Run(String[] args)
    at Program.Main(String[] args)
     
  2. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    39
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,789
    aducceschi likes this.
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,789
    aducceschi likes this.
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,789
    @fgLxy: It looks like this is not a know issue. Also, this is likely a symptom of a corrupted Unity installation. Could try to re-install this version of Unity?
     
    aducceschi likes this.
  6. aducceschi

    aducceschi

    Joined:
    Feb 9, 2022
    Posts:
    39
    He is using DOTS with IL2CPP. Until very recently having a Subscene for Entity Baking resulted in an player crash when opening the executable. (It's fixed in Unity 2022.2.0b13).
     
    Last edited: Nov 4, 2022
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,789
    Ok, thanks for clarifying. I think the error message here happens earlier though, during the player build.
     
    aducceschi likes this.
  8. fgLxy

    fgLxy

    Joined:
    Feb 21, 2022
    Posts:
    12
    Thanks for your reply. I'll try to reinstall the version
     
  9. fgLxy

    fgLxy

    Joined:
    Feb 21, 2022
    Posts:
    12
    I tried to reinstall Unity 2021.3.12f1. It seems that the installation process is successful. However, an error is still reported. Is there any way for me to confirm whether Unity Linker is installed as expected
     
  10. 13391327996

    13391327996

    Joined:
    Dec 3, 2018
    Posts:
    2
    I met the same issue using 2021.3.12f1. I removed Bolt from the project and it works. I think there may be some packages from the third party in your project that is not compatible with the Unity version
     
    aducceschi likes this.
  11. fgLxy

    fgLxy

    Joined:
    Feb 21, 2022
    Posts:
    12
    Thanks for your reply. I'll try to create a empty project and build it again
     
  12. 13391327996

    13391327996

    Joined:
    Dec 3, 2018
    Posts:
    2
    I finally fallback to 2021.3.6f1c1 and this error does not occurs.
     
    aducceschi likes this.
  13. rekcah1986

    rekcah1986

    Joined:
    Nov 23, 2017
    Posts:
    6
    There are still issues in the 2021.3.23f1 version. Is there a solution?
     
  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,789
    I don't believe that we have a solution for this issue yet.