Search Unity

Package Manager Strange Error

Discussion in 'Unity Build Automation' started by echeg, Apr 11, 2019.

  1. echeg

    echeg

    Joined:
    Aug 1, 2012
    Posts:
    90
    Move build target to unity 2019.1
    Code (CSharp):
    1. 105: [Unity] [Package Manager] Done resolving packages in 1.54s seconds
    2. 106: [Unity] An error occurred while resolving packages:
    3. 107: [Unity]   Project has invalid dependencies:
    4. 108: [Unity]     com.unity.2d.sprite: Package [com.unity.2d.sprite@1.0.0] cannot be found
    5. 109: [Unity]     com.unity.2d.tilemap: Package [com.unity.2d.tilemap@1.0.0] cannot be found
    6. 110: [Unity]     com.unity.modules.androidjni: Package [com.unity.modules.androidjni@1.0.0] cannot be found
    7. 111: [Unity]     com.unity.package-manager-ui: Package [com.unity.package-manager-ui@2.2.0] cannot be found
    8. 112: [Unity] A re-import of the project may be required to fix the issue or a manual modification of /BUILD_PATH/qcore.awars.default-android/Packages/manifest.json file.
    9. 113:        ! Unity player export failed!
    Not found basic packages? Any one know how to solve this problem?

    Full log
    Code (CSharp):
    1. Running Prebuild steps
    2. 2: In quiet period, build will start momentarily...
    3. 3: Agent pid 5074
    4. 4: Successfully uninstalled bvr-2.0.9
    5. 5: Successfully uninstalled bvr-2.0.18
    6. 6: Successfully uninstalled bvr-3.0.9
    7. 7: Removing bvr
    8. 8: Removing bvr_runner
    9. 9: Successfully uninstalled bvr-3.0.13
    10. 10: bvr 3.0.25
    11. 11: bvr-api 0.3.11
    12. 12: prebuildstatus finished successfully.
    13. 13: All identities removed.
    14. 14: BVR: SCM Checkout
    15. 15: OAUTH: Checkout project...
    16. 16: OAUTH: Checking out https://gitlab.com/echeg/awars.git/develop
    17. 17: GIT: Checking out via URI...
    18. 18: Cloned in 38 seconds.
    19. 19: GIT: Requested revision: 839660a0b6a5f87dbaa1e586a26b64dcfb43ed88
    20. 20: OAUTH: Checkout operation complete.
    21. 21: BVR: SCM Checkout completed in 40 seconds.
    22. 22: Calculated Workspace Size: 365.38 MiB
    23. 23: PATH                | SIZE    
    24. 24: --------------------|-----------
    25. 25: /Assets             | 331.04 MiB
    26. 26: /Logs               | 2.22 KiB
    27. 27: /Packages           | 23.65 MiB
    28. 28: /ProjectSettings    | 42.92 KiB
    29. 29: /TexturesForAtlases | 10.64 MiB
    30. 30: GIT: Get current revision
    31. 31: GIT: Current revision is 839660a0b6a5f87dbaa1e586a26b64dcfb43ed88
    32. 32: GIT: Get changeset between 90a10240fc0b039fd764f6988ae582825e3116cb and 839660a0b6a5f87dbaa1e586a26b64dcfb43ed88 (max 30)
    33. 33: postcheckoutstatus finished successfully.
    34. 34: Added new build target 'default-android'
    35. 35: Saved /BUILD_PATH/qcore.awars.default-android/build.json
    36. 36: ! platform service error: read timeout reached
    37. 37: No Library cache found - ALL assets will be re-imported.
    38. 38:  + Detecting Unity installation ...
    39. 39:  + Building with Unity installed at /UNITY_PATH/Unity/Unity-2019_1_0b9/Unity.app/Contents/MacOS/Unity
    40. 40: Using 2018+ DLL
    41. 41:  + Installing UnityCloud build tools
    42. 42:        Injecting custom Scripting Define Symbols 'UNITY_CLOUD_BUILD'
    43. 43:  + Switching Unity to target platform
    44. 44: [Unity] DisplayProgressbar: Unity license
    45. 45: [Unity]  COMMAND LINE ARGUMENTS:
    46. 46: [Unity] /UNITY_PATH/Unity/Unity-2019_1_0b9/Unity.app/Contents/MacOS/Unity
    47. 47: [Unity] -batchmode
    48. 48: [Unity] -skipMissingProjectID
    49. 49: [Unity] -skipMissingUPID
    50. 50: [Unity] -projectPath
    51. 51: [Unity] /BUILD_PATH/qcore.awars.default-android
    52. 52: [Unity] -logFile
    53. 53: [Unity] -buildconfig
    54. 54: [Unity] -bvrbuildtarget
    55. 55: [Unity] default-android
    56. 56: [Unity] -buildTarget
    57. 57: [Unity] android
    58. 58: [Unity] -quit
    59. 59: [Unity] Successfully changed project path to: /BUILD_PATH/qcore.awars.default-android
    60. 60: [Unity] /BUILD_PATH/qcore.awars.default-android
    61. 61: [Unity] Using Asset Import Pipeline V1.
    62. 62: [Unity] DisplayProgressbar: Unity Package Manager
    63. 63: [Unity] Rebuilding Library because the asset database could not be found!
    64. 64: [Unity] (Filename: ./Modules/AssetDatabase/Editor/Shared/AssetDatabaseInitialization.cpp Line: 108)
    65. 65: [Unity] FMOD initialized on nosound output
    66. 66: [Unity] Loading GUID <-> Path mappings...0.000130 seconds
    67. 67: [Unity] Loading Asset Database...0.000018 seconds
    68. 68: [Unity] AssetDatabase consistency checks...0.001351 seconds
    69. 69: [Unity] [Package Manager] Done resolving packages in 37.35s seconds
    70. 70: [Unity] An error occurred while resolving packages:
    71. 71: [Unity]   Project has invalid dependencies:
    72. 72: [Unity]     com.unity.2d.sprite: Package [com.unity.2d.sprite@1.0.0] cannot be found
    73. 73: [Unity]     com.unity.2d.tilemap: Package [com.unity.2d.tilemap@1.0.0] cannot be found
    74. 74: [Unity]     com.unity.modules.androidjni: Package [com.unity.modules.androidjni@1.0.0] cannot be found
    75. 75: [Unity]     com.unity.package-manager-ui: Package [com.unity.package-manager-ui@2.2.0] cannot be found
    76. 76: [Unity] A re-import of the project may be required to fix the issue or a manual modification of /BUILD_PATH/qcore.awars.default-android/Packages/manifest.json file.
    77. 77:  + Building Unity player (android)
    78. 78: [Unity] DisplayProgressbar: Unity license
    79. 79: [Unity]  COMMAND LINE ARGUMENTS:
    80. 80: [Unity] /UNITY_PATH/Unity/Unity-2019_1_0b9/Unity.app/Contents/MacOS/Unity
    81. 81: [Unity] -batchmode
    82. 82: [Unity] -skipMissingProjectID
    83. 83: [Unity] -skipMissingUPID
    84. 84: [Unity] -projectPath
    85. 85: [Unity] /BUILD_PATH/qcore.awars.default-android
    86. 86: [Unity] -logFile
    87. 87: [Unity] -buildconfig
    88. 88: [Unity] -bvrbuildtarget
    89. 89: [Unity] default-android
    90. 90: [Unity] -executeMethod
    91. 91: [Unity] UnityEditor.CloudBuild.Builder.Build
    92. 92: [Unity] -bvriconpath
    93. 93: [Unity] /BUILD_PATH/qcore.awars.default-android/.build/last/default-android/extra_data/artifacts/icon.png
    94. 94: [Unity] -bvrbuildreportpath
    95. 95: [Unity] /BUILD_PATH/qcore.awars.default-android/.build/last/default-android/extra_data/build_report
    96. 96: [Unity] -quit
    97. 97: [Unity] Successfully changed project path to: /BUILD_PATH/qcore.awars.default-android
    98. 98: [Unity] /BUILD_PATH/qcore.awars.default-android
    99. 99: [Unity] Using Asset Import Pipeline V1.
    100. 100: [Unity] DisplayProgressbar: Unity Package Manager
    101. 101: [Unity] Loading GUID <-> Path mappings...0.000110 seconds
    102. 102: [Unity] Loading Asset Database...0.000772 seconds
    103. 103: [Unity] FMOD initialized on nosound output
    104. 104: [Unity] AssetDatabase consistency checks...0.039259 seconds
    105. 105: [Unity] [Package Manager] Done resolving packages in 1.54s seconds
    106. 106: [Unity] An error occurred while resolving packages:
    107. 107: [Unity]   Project has invalid dependencies:
    108. 108: [Unity]     com.unity.2d.sprite: Package [com.unity.2d.sprite@1.0.0] cannot be found
    109. 109: [Unity]     com.unity.2d.tilemap: Package [com.unity.2d.tilemap@1.0.0] cannot be found
    110. 110: [Unity]     com.unity.modules.androidjni: Package [com.unity.modules.androidjni@1.0.0] cannot be found
    111. 111: [Unity]     com.unity.package-manager-ui: Package [com.unity.package-manager-ui@2.2.0] cannot be found
    112. 112: [Unity] A re-import of the project may be required to fix the issue or a manual modification of /BUILD_PATH/qcore.awars.default-android/Packages/manifest.json file.
    113. 113:        ! Unity player export failed!
    114. 114: ! build of 'default-android' failed. exit
    115. 115: Publishing build 7 of qcore/awars for target 'default-android'...
    116. 116: publishing finished successfully.
    117. 117: Zipping cache files from Library
    118. 118: done.
    119. 119: Build step 'Execute shell' marked build as failure
    120. 120: postbuildstatus finished successfully.
    121. 121: postbuildsteps finished successfully
    122. 122: Finished: FAILURE
     
  2. KirkleyEntertainment

    KirkleyEntertainment

    Joined:
    Mar 7, 2015
    Posts:
    2
    Hi there, we had a similar issue when downgrading a project from 2019.3.0a7 to 2018.1.8f1. This was for a 3D project, not a 2D project. Close Unity and open the location of your project and go into the Packages folder and rename the manifest.json file to manifest.old. Create a new project (we used the new "3D with extras" template from Unity Hub. Close Unity and copy the manifest.json file from the new project and paste it into the Packages folder of the project with the error. Relaunch the Project with the error and it should open without error. If there are errors, then you can delete the new json file and rename the original.

    The alternative is to make a backup of the json file and then delete the lines in the manifest.json file with the packages that can't be found, ie:


    com.unity.2d.sprite
    com.unity.2d.tilemap
    com.unity.modules.androidjni
    com.unity.package-manager-ui
     
  3. Shodan0101

    Shodan0101

    Joined:
    Mar 18, 2013
    Posts:
    141
    Thx Kirkley, this worked!
     
  4. Zkellington

    Zkellington

    Joined:
    Aug 10, 2018
    Posts:
    1
    Thanks Kirkley!!!