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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unused dll included in apk when building game with empty screen

Discussion in 'Android' started by linhdinh, Nov 13, 2015.

  1. linhdinh

    linhdinh

    Joined:
    Mar 16, 2015
    Posts:
    4
    I am using Unity3d 5.2. I create an empty project with empty screen (no camera, no script at all). I have no assets, no scripts and set the build stripping level to "Use micro mscorlib". When I look into the apk file, there is bunch of dll that is not referenced. The editor log reveals:

    Mono dependencies included in the build
    Dependency assembly - Mono.Security.dll
    Dependency assembly - System.Core.dll
    Dependency assembly - System.dll
    Dependency assembly - mscorlib.dll
    Dependency assembly - UnityEngine.UI.dll
    Dependency assembly - UnityEngine.Networking.dll

    According to documents:
    Why are there libraries such Mono.Security, UnityEngine.UI, UnityEnigne.Networking in the final build?
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    I think the documentation hasn't been updated in some time (to include the new UI and Networking DLLs). these seem to be included by default, even if they are not used..
     
  3. linhdinh

    linhdinh

    Joined:
    Mar 16, 2015
    Posts:
    4
    @liortal do you know how to get rid of them from the post build?
     
  4. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,559
    I don't think you can currently get rid of them. They don't consume that much space anyway ...