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.

Question Can't Build Android with entities-pre.15

Discussion in 'Entity Component System' started by jennal, Nov 28, 2022.

  1. jennal

    jennal

    Joined:
    Oct 28, 2017
    Posts:
    24
    I can build android apk by
    Entities Build
    Settings with
    entities-preview.12
    . All working good.
    But the setting has been removed from
    entities-pre.15
    . And I try to build in regular Build Settings and get this error:

    Code (CSharp):
    1. KeyNotFoundException: The given key 'Library/AtlasCache/07/07ba2cd30a51584addcc6c907d1c88bd' was not present in the dictionary.
    2. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <8f06425e63004caf99a79845675f751e>:0)
    3. Unity.Scenes.Editor.EntitySceneBuildUtility+<>c__DisplayClass3_0.<PrepareAdditionalFiles>b__0 (Unity.Entities.Hash128 guid, System.Int64 lfid, System.String path) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildUtility.cs:277)
    4. Unity.Entities.Content.BuildResultsCatalogDataSource..ctor (UnityEditor.Build.Pipeline.Interfaces.IBundleBuildResults results, System.Collections.Generic.IEnumerable`1[T] builtInObjects, System.Func`4[T1,T2,T3,TResult] objIdentifierToRuntimeId, System.Func`2[T,TResult] pathToFileId, UnityEditor.Build.Pipeline.Tasks.IClusterOutput buildLayout, System.Collections.Generic.HashSet`1[T] sceneGuids) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/Build/BuildResultsCatalogDataSource.cs:29)
    5. Unity.Scenes.Editor.EntitySceneBuildUtility.BuildContent (UnityEditor.BuildTarget target, System.Collections.Generic.HashSet`1[T] weakAssetRefs, System.Collections.Generic.List`1[T] customContent, System.Action`2[T1,T2] RegisterFileCopy, System.Func`4[T1,T2,T3,TResult] objIdToRTId, System.Func`2[T,TResult] idRemapFunc, System.Int32 numberOfSubScenesInBuild, System.Int32& numberOfAssetsInSubScenes) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildUtility.cs:692)
    6. Unity.Scenes.Editor.EntitySceneBuildUtility.PrepareAdditionalFiles (Unity.Entities.Hash128 playerGuid, Unity.Entities.Hash128[] sceneGuids, UnityEditor.Experimental.ArtifactKey[] entitySceneArtifacts, UnityEditor.BuildTarget target, System.Action`2[T1,T2] RegisterFileCopy) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildUtility.cs:310)
    7. Unity.Scenes.Editor.EntitySceneBuildPlayerProcessor.PrepareForBuild (UnityEditor.Build.BuildPlayerContext buildPlayerContext) (at Library/PackageCache/com.unity.entities@1.0.0-pre.15/Unity.Scenes.Editor/EntitySceneBuildPlayerProcessor.cs:161)
    8. UnityEditor.Build.BuildPipelineInterfaces.PreparePlayerBuild (UnityEditor.Build.BuildPlayerContext context) (at <d5cfe1b7a8b8455dae78439447671342>:0)
    9. UnityEditor.BuildPipeline.PreparePlayerBuild (UnityEditor.BuildPlayerOptions buildPlayerOptions) (at <d5cfe1b7a8b8455dae78439447671342>:0)
    10. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
    The message make non sense for me, and I don't know how to fix it.