删除忽略的Android Studio(或Intellij)更新构建

hos*_*oss 42 android intellij-idea updates android-studio

发布Android Studio更新时,您错误地点击了Ignore This Update如何应用更新而无需重新安装Android Studio?

hos*_*oss 55

更新

好像最新版本的AS现在在Yogesh Umesh Vaity的答案中注明了UI 中的偏好

原始答案

恢复错误选择的简单方法是关闭Android Studio,然后编辑other.xml文件并删除myIgnoredBuildNumbers选项块:

<option name="myIgnoredBuildNumbers">
  <value>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="130.729444" />
    </list>
  </value>
</option>
Run Code Online (Sandbox Code Playgroud)

从技术上讲,您应该编辑size并删除有item问题,但在下次忽略构建后进行一些测试后,myIgnoredBuildNumbers将重建块.

other.xml文件可在以下位置找到:

  • OSX: ~/Library/Preferences/AndroidStudio/options/other.xml
  • 赢得: %HOMEPATH%\.AndroidStudio\config\options\other.xml
  • NIX: ~/.AndroidStudio/config/options/other.xml

可以Intellij在以下路径中完成相同的操作:

  • OSX: ~/Library/Preferences/IdeaIC12/options/other.xml
  • 赢得: %HOMEPATH%\.IdeaIC12\options\other.xml

从Android Studio 1.2(可能更早)开始,忽略的构建块在updates.xml中定义,与other.xml在同一目录中

  • 对于OSX上的Intellij14,这已被移至`〜/ Library/Preferences/IntelliJIdea14/options/updates.xml` (5认同)
  • 对于Linux,它位于`〜/ .AndroidStudioPreview/config/options/other.xml`. (4认同)

Aji*_*ana 13

更新hoss的回答:

我一直在Mac OSX上使用Android studio 1.4 并且碰巧忽略了更新1.5.忽略的内部版本号位于以下路径的"updates.xml"中.

/Users/YOUR_USER_NAME/Library/Preferences/AndroidStudio1.4/options/ updates.xml

从updates.xml文件中删除"ignoredBuildNumbers"部分并保存.确保您正在更新与您正在使用的版本对应的Android studio文件夹中的文件.另外需要注意的是,确保在更新文件之前退出Android studio.Else Studio将使用内存中的先前数据覆盖xml文件.编辑文件并再次启动Android Studio.

退出工作室>编辑"updates.xml">启动工作室

如果仍然无效,请切换到Canary频道并检查更新.如果有更新,请选择"稍后提醒我"选项.然后切换回STABLE通道并再次检查更新.它现在应该工作了.


Yog*_*ity 7

现在有一种更简单的方法可以执行此操作。Android Studio可以在“偏好设置”中删除被忽略的更新。

去:

Preferences > Appearance & Behavior > System Settings > 
Updates > View/edit ignored updates
Run Code Online (Sandbox Code Playgroud)

忽略的更新Android Studio 将打开一个忽略的更新列表。只需删除您不想忽略的更新即可。 忽略的更新列表Android Studio