You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

启动Android Studio时遇正文错误链接问题,请求协助解决

Hey there, let's sort out that frustrating "Invalid link in body" error popping up when you start Android Studio. I've dealt with this exact issue a few times, so here are some practical steps to resolve it:

Android Studio stores various settings in config files that might have invalid links stuck in them. Here's how to find them:

  • On Windows: Navigate to C:\Users\<YourUsername>\.AndroidStudio<Version>\config
  • On Mac: Go to ~/Library/Application Support/Google/AndroidStudio<Version>
  • Look through files like idea.properties, plugin-specific XML files, or options folder contents for any malformed links (e.g., links missing closing parentheses, or pointing to non-existent URLs). Delete or correct those links, then restart Studio.

2. Troubleshoot problematic plugins

More often than not, a misbehaving plugin is the culprit. Try this:

  • Launch Android Studio while holding the Shift key (Windows/Linux) or Option key (Mac) to enter Safe Mode. This disables all plugins.
  • If Studio starts normally in Safe Mode, you know a plugin is causing the error. Go to File > Settings > Plugins (or Android Studio > Settings > Plugins on Mac), then re-enable plugins one by one, restarting Studio each time. When the error comes back, you've found the problematic plugin—either update it to the latest version or uninstall it entirely.

3. Invalidate caches and restart

Corrupted cache files can throw all sorts of weird errors, including this one. Let's clear them:

  • Go to File > Invalidate Caches...
  • In the pop-up window, select Invalidate and Restart. This will wipe Studio's cached data and restart the app. Wait for it to rebuild the caches, then check if the error is gone.

4. Inspect your project's files (if the error happens when opening a specific project)

If the error only appears when you open a particular project, check these places:

  • The project's README.md or other markdown files for malformed links (e.g., [text](url without a closing parenthesis, or typos in the URL).
  • Gradle scripts (build.gradle files) for any invalid repository URLs or links in comments. Fix any broken links you find, then reload the project.

5. Reinstall Android Studio (last resort)

If none of the above works, it might be a deeper issue with the Studio installation. Backup your project files and any custom settings first, then:

  • Uninstall Android Studio completely (make sure to delete leftover config folders mentioned in step 1).
  • Download the latest version from the official Android Studio website and reinstall it.

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.11 07:24:10