You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何解决RStudio启动时api-ms-win-runtime-|1-1-0.dll缺失的错误

Fixing the "api-ms-win-runtime-1-1-0.dll is missing" Error in RStudio

Hey there, let's get your RStudio up and running smoothly—since your R installation works perfectly fine, the issue is tied to RStudio's dependency on that missing Windows Runtime DLL. Here are step-by-step fixes to try, starting with the quickest and most reliable:

1. Repair Windows System Files

The missing DLL is part of Windows' core runtime components, so scanning for corrupted system files often resolves this:

  • Open Command Prompt as Administrator (right-click Start → select "Windows Terminal (Admin)" or "Command Prompt (Admin)").
  • Run this command to scan and repair system files:
    sfc /scannow
    
  • Wait for the scan to complete (it might take 10-15 minutes). If it finds and fixes issues, restart your PC and try launching RStudio again.
  • If sfc doesn't resolve it, run this command to repair your system image first, then re-run sfc:
    DISM /Online /Cleanup-Image /RestoreHealth
    

2. Install the Microsoft Visual C++ Redistributable Package

This DLL is included in the Visual C++ Runtime libraries, which RStudio relies on heavily:

  • Download the Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 (match your system architecture: x64 for 64-bit Windows, x86 for 32-bit).
  • Run the installer, follow the prompts to complete installation, then restart your computer. Try opening RStudio again.

3. Perform a Clean Reinstall of RStudio

A partial or corrupted RStudio installation might be the culprit—let's do a full reset:

  • Uninstall RStudio via Control Panel → Programs and Features: Find RStudio in the list, right-click it, and select "Uninstall".
  • Delete the leftover RStudio installation folder (default paths are C:\Program Files\RStudio for 64-bit, or C:\Program Files (x86)\RStudio for 32-bit).
  • Download the latest compatible version of RStudio (make sure it matches your R version—e.g., R 4.x works with the latest RStudio builds).
  • Right-click the installer and select "Run as administrator" to install it, then launch RStudio.

4. Install All Windows Updates

Outdated system files can cause runtime library missing errors:

  • Open Settings → Windows Update and install all available updates, including optional updates.
  • After updates are installed, restart your PC and test RStudio again.

Bonus Tip for Windows 7 Users

If you're on Windows 7, this DLL requires the KB2999226 update. Install this patch, restart your system, and try RStudio again.

内容的提问来源于stack exchange,提问作者Rojer

火山引擎 最新活动