Adding dependencies loading and stuck

Hello Friends,
From last 1 week, I am seeing adding dependencies screen and not load the project. Eventually I have to end task then keep open again and again. Sometimes open and sometimes not. Can someone tells me or suggest me why it is happening and I can resolve it?

Is this happening for a specific project? For a specific dependency?

Can you share some more info?

  • exact studio version
  • windows/cross-platform project
  • what’s the exact dependency and from what feed is it coming from

Version- 2024.10.5
It happens with all projects, sometimes open so quickly and sometimes not.
Using all default package not installed any new package.
I created new xaml and use msgbox for test purpose and after close that xaml and open then add dependencies error.

2 times I uninstalled and installed it but no change

@Jeeru_venkat_Rao ,

Try to follow below steps:

1. Restart UiPath and Your Computer:

  • Sometimes, a simple restart of UiPath Studio or your computer can help eliminate temporary glitches.

2. Clear the NuGet Cache:

  • Clear NuGet Cache: You can clear the NuGet cache to resolve dependency issues. This can be done using the following command in the command prompt:
    nuget locals all -clear
    
  • Delete Local Packages: Additionally, you can navigate to the directory where the packages are stored and delete any that are not needed. Typically, this is found in:
    %userprofile%\.nuget\packages
    

3. Update UiPath Studio:

  • Make sure you are using the latest version of UiPath Studio. Sometimes, bugs or issues in previous versions are resolved in newer versions.

4. Disable or Adjust Antivirus/Firewall:

  • Occasionally, antivirus software or firewalls can interfere with the operation of UiPath. Try temporarily disabling any security software or adding exceptions for UiPath.

5. Check Package Sources:

  • Go to Manage Packages and check your package sources. Ensure that the NuGet.org source is enabled. You might also try removing any custom package sources that are not working.

6. Re-create the Project:

  • If the project remains unresponsive, consider creating a new project and importing your existing files. This can help if the project file itself is corrupted.

7. Review Logs:

  • Check the logs for any error messages that indicate what might be causing the loading issue. You can find the logs in the following directory:
    %localappdata%\UiPath\Logs
    

8. Repair UiPath Installation:

  • If none of the above works, try repairing your UiPath installation via the Control Panel. This can sometimes resolve underlying issues with the installed software.

9. Use Offline Mode:

  • If dependency issues persist, you can try loading the project in an offline mode by disabling “Auto Update” for packages.

Thanks @naveen.s
When I run above command in CMD then below error occur
“‘nuget’ is not recognized as an internal or external command,
operable program or batch file.”

What can do here now?

@Jeeru_venkat_Rao ,

Follow the below steps:

Here are some steps to resolve the issue:

Option 1: Install or Update NuGet CLI

  1. Download NuGet.exe:

  2. Move NuGet.exe:

    • Move the downloaded nuget.exe file to a directory of your choice, such as C:\Program Files\NuGet\.
  3. Add to PATH Environment Variable:

    • Search for “Environment Variables” in Windows Search and select “Edit the system environment variables.”
    • In the System Properties window, click on the “Environment Variables” button.
    • In the Environment Variables window, find the Path variable in the “System variables” section and select it, then click “Edit.”
    • Click “New” and add the path where you placed nuget.exe (e.g., C:\Program Files\NuGet\).
    • Click “OK” to close all dialog boxes.
  4. Verify the Installation:

    • Open a new Command Prompt window (you need a new instance for the PATH changes to take effect).
    • Type nuget and press Enter. If the installation was successful, it should show you the usage for NuGet commands.

Option 2: Use NuGet Command Directly in UiPath

If the command line approach is proving to be complicated, you can resolve NuGet cache issues directly through UiPath:

  1. Open UiPath Studio and go to the project.
  2. Open the project directory in File Explorer.
  3. Locate the packages folder within your project directory and delete it. This will force UiPath to restore the packages on the next startup.
  4. Return to UiPath Studio and try opening the project again.

Option 3: Manual Process in UiPath

  1. Go to Manage Packages: In UiPath Studio, navigate to the “Manage Packages” option found in the ribbon.
  2. Update Dependencies: Check for available updates for the packages you’re using. You can manually restore any that are missing or update to the latest versions.

Tried option 3 but not working and facing difficulties to follow other options. Any easy method ?

Facing the same challenge again. Stuck on adding dependencies when opening a project. Sometimes it opens sometimes it dont