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

Bug "Failed To Resolve Packages: The File packages\manifest.json is not valid jason"

Discussion in 'Package Manager' started by ninjalemur, Dec 30, 2022.

  1. ninjalemur

    ninjalemur

    Joined:
    Feb 17, 2017
    Posts:
    3
    When I attempt to open my project with unity editor version 2021.3.4f1, I receive the following error message;
    upload_2022-12-30_23-5-31.png
    Where to go from here? Using reimport all from the asset menu does not work.
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,191
    did you manually edit the manifest.json?
    maybe attach it here so someone can point out the issue
     
  3. ninjalemur

    ninjalemur

    Joined:
    Feb 17, 2017
    Posts:
    3
    I do not believe I manually edited this file, but here is the file text (I was not allowed JSON as an attachment).:

    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.2d.sprite": "1.0.0",
    4.     "com.unity.2d.tilemap": "1.0.0",
    5.     "com.unity.ads": "3.7.5",
    6.     "com.unity.analytics": "3.6.11",
    7.     "com.unity.collab-proxy": "1.15.15",
    8.     "com.unity.collab-proxy": "1.9.0",
    9.     "com.unity.collab-proxy": "1.14.15",
    10.     "com.unity.ext.nunit": "1.0.6",
    11.     "com.unity.ide.rider": "2.0.7",
    12.     "com.unity.ide.visualstudio": "2.0.11",
    13.     "com.unity.ide.vscode": "1.2.3",
    14.     "com.unity.purchasing": "3.2.2",
    15.     "com.unity.test-framework": "1.1.29",
    16.     "com.unity.textmeshpro": "3.0.6",
    17.     "com.unity.timeline": "1.4.8",
    18.     "com.unity.ugui": "1.0.0",
    19.     "com.unity.modules.ai": "1.0.0",
    20.     "com.unity.modules.androidjni": "1.0.0",
    21.     "com.unity.modules.animation": "1.0.0",
    22.     "com.unity.modules.assetbundle": "1.0.0",
    23.     "com.unity.modules.audio": "1.0.0",
    24.     "com.unity.modules.cloth": "1.0.0",
    25.     "com.unity.modules.director": "1.0.0",
    26.     "com.unity.modules.imageconversion": "1.0.0",
    27.     "com.unity.modules.imgui": "1.0.0",
    28.     "com.unity.modules.jsonserialize": "1.0.0",
    29.     "com.unity.modules.particlesystem": "1.0.0",
    30.     "com.unity.modules.physics": "1.0.0",
    31.     "com.unity.modules.physics2d": "1.0.0",
    32.     "com.unity.modules.screencapture": "1.0.0",
    33.     "com.unity.modules.terrain": "1.0.0",
    34.     "com.unity.modules.terrainphysics": "1.0.0",
    35.     "com.unity.modules.tilemap": "1.0.0",
    36.     "com.unity.modules.ui": "1.0.0",
    37.     "com.unity.modules.uielements": "1.0.0",
    38.     "com.unity.modules.umbra": "1.0.0",
    39.     "com.unity.modules.unityanalytics": "1.0.0",
    40.     "com.unity.modules.unitywebrequest": "1.0.0",
    41.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    42.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    43.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    44.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    45.     "com.unity.modules.vehicles": "1.0.0",
    46.     "com.unity.modules.video": "1.0.0",
    47.     "com.unity.modules.vr": "1.0.0",
    48.     "com.unity.modules.wind": "1.0.0",
    49.     "com.unity.modules.xr": "1.0.0"
    50.   }
    51. }
    52.  
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    4,191
    Code (CSharp):
    1.     "com.unity.collab-proxy": "1.15.15",
    2.     "com.unity.collab-proxy": "1.9.0",
    3.     "com.unity.collab-proxy": "1.14.15",
    this package is listed three times for some reason
    try removing the latter two lines and then reopen the project
     
    supita_unity likes this.
  5. ninjalemur

    ninjalemur

    Joined:
    Feb 17, 2017
    Posts:
    3
    I receive the same error message
     
  6. supita_unity

    supita_unity

    Unity Technologies

    Joined:
    Dec 13, 2019
    Posts:
    225
    As CodeSmile pointed out the package com.unity.collab-proxy is listed 3 times, and it should only be present once. I'm not sure how this happened. Did you manually removed as suggested from your manifest.json

    Code (CSharp):
    1. "com.unity.collab-proxy": "1.9.0",
    2. "com.unity.collab-proxy": "1.14.15",
    and reopned Unity, and still have the same issue, having the three occurrences of com.unity.collab-proxy?