Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

2019.1.3 Exception: Package file ... already has a USES declaration!

Discussion in 'Magic Leap' started by BjoUnity3d, May 18, 2019.

  1. BjoUnity3d

    BjoUnity3d

    Joined:
    Jul 24, 2012
    Posts:
    25
    Trying to build after upgrading a project from 2019.1.1 to 2019.1.3 and getting:

    Exception: Package file D:\HDI_PROJECTS\2019\UnityProjects\MagicLeapParticleHands\com.hdinteractive.mlhello.package already has a USES declaration!

    Anyone else run into this? Here is the full error:

    may not have your own "USES=" statement in the .package file. Please remove it and try again.
    UnityEditor.Lumin.Packaging.PackageBuilder.WriteToFile (System.String path, System.Boolean addToExisting) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/Packaging/PackageBuilder.cs:55)
    UnityEditor.Lumin.PostProcessor.Tasks.PackageBuildTask.Execute (UnityEditor.Lumin.PostProcessor.PostProcessorContext ctx) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/PostProcessor/Tasks/PackageBuildTask.cs:86)
    UnityEditor.Lumin.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Lumin.PostProcessor.PostProcessorContext context) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/PostProcessor/PostProcessRunner.cs:27)
    UnityEditor.Lumin.PostProcessLumin.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, System.Boolean incremental) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/PostProcessLumin.cs:91)
    Rethrow as UnityException: [Build failure] Package file com.hdinteractive.mlhello.package already has a USES declaration! You may not have your own "USES=" statement in the .package file. Please remove it and try again. See the Console for details.
    UnityEditor.Lumin.Utils.DialogHelper.Fatal (System.String title, System.String message, System.Exception inner) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/Utils/DialogHelper.cs:23)
    UnityEditor.Lumin.PostProcessLumin.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, System.Boolean incremental) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/PostProcessLumin.cs:105)
    UnityEditor.Lumin.LuminBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/Lumin/Editor/Managed/ExtensionModule.cs:70)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
    UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
     
  2. Kubold

    Kubold

    Joined:
    May 10, 2012
    Posts:
    339
    Yes, I have the same error and also with Lumin. I guess we should go to Magic Leap with this?
     
  3. Kubold

    Kubold

    Joined:
    May 10, 2012
    Posts:
    339
    Ok, so Magic Leap says:

    Delete the com.company.productname.package file, which is in the folder above your Assets folder in your project.
     
    scihuman likes this.
  4. scihuman

    scihuman

    Joined:
    Nov 16, 2012
    Posts:
    20
    Ah, nice and easy.