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. Dismiss Notice

Compile apk with IL2CPP returns error

Discussion in 'Editor & General Support' started by Gamedel, Aug 29, 2019.

  1. Gamedel

    Gamedel

    Joined:
    May 7, 2017
    Posts:
    6
    Due to the new Google policy, it was necessary to recompile the game into a 64-bit version.
    But when i compile apk with IL2CPP it returns error

    ArgumentException: The Assembly ICSharpCode.SharpZipLib is referenced by NPOI ('Assets/Scripts/ExcelToArray/dlls/NPOI.dll'). But the dll is not allowed to be included or could not be found.
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1[T] alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2[TKey,TValue] cache, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, UnityEditor.BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:194)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

    I realized that there was a problem with the NPOI library that I included in the project, but I did not understand how to solve it. Please help.
     
  2. marsoups

    marsoups

    Joined:
    Jan 7, 2013
    Posts:
    11
    You will need to speak to the NPOI library makers and ask them to support 64 bit. They are probably already onto it because the new requirement might otherwise shut their library out from usage.
     
  3. Gamedel

    Gamedel

    Joined:
    May 7, 2017
    Posts:
    6
    liuyang61 and vrlabcrf like this.