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

Resolved A problem with UnityLinker.exe and Unity Remote Config

Discussion in 'Unity Remote Config' started by jam54, Jul 18, 2020.

  1. jam54

    jam54

    Joined:
    Feb 5, 2017
    Posts:
    5
    So I wrote a script to do some stuff with Unity Remote Config. And everything works fine in the editor. But when I try to build the game for android. I get an error saying that UnityLinker.exe didnt run properly. I narrowed the problem down to the script in which I handle some Unity Remote Stuff. And within that script I narrowed the problem even more down to these 2 lines:

    ConfigManager.FetchCompleted += CheckForUpdates;
    ConfigManager.FetchConfigs<userAttributes, appAttributes>(new userAttributes(), new appAttributes());


    If I exclude these 2 lines from the script, everything builds fine.
     
    Last edited: Jul 18, 2020
  2. jam54

    jam54

    Joined:
    Feb 5, 2017
    Posts:
    5
    After changing the Managed stripping level to either low or medium, the issue was resolved.

    Edit: In Unity 2020.1, the apk gets build correctly again, even when the stripping level is set to high.
     
    Last edited: Jul 26, 2020
    JeffDUnity3D likes this.