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

标签 android intellij-idea updates android-studio

当发布了 Android Studio 更新并且您错误地点击了忽略此更新如何应用更新而无需重新安装 Android Studio?

最佳答案

更新

从 Android Studio 的最新版本开始,UI 中现在有一个 Preference noted in an answer by Yogesh Umesh Vaity

原答案

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

<option name="myIgnoredBuildNumbers">
  <value>
    <list size="1">
      <item index="0" class="java.lang.String" itemvalue="130.729444" />
    </list>
  </value>
</option>

从技术上讲,您应该编辑 size 并删除有问题的 item 但经过一些测试后,您下次忽略构建时会出现 myIgnoredBuildNumbers block 将被重建。

other.xml 文件位于:

  • OSX:~/Library/Preferences/AndroidStudio/options/other.xml
  • WIN:%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(可能更早)开始,忽略的构建 block 在与 other.xml 相同的目录中的 updates.xml 中定义

关于android - 删除忽略的 Android Studio(或 Intellij)更新构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17474412/

相关文章:

java - 字符串和垃圾收集

Android - 在 View 下方显示 toast ?

android - Web 应用程序中的签名捕获

c# - 如何使用 ClickOnce 提供更新描述?

android - 在资源路径中编码认证数据是否正确

android-studio - 合并 Intellij IDE 以仅安装一个

java.lang.NullPointerException : Cannot invoke "java.net.URL.toExternalForm()" because "resource" is null at org. mapstruct

intellij-idea - Intellij,如何禁用工具窗口的动画速度非常慢

c++ - 存储不断访问的数据的最佳方式

php - 将旧代码升级到较新的 MySQL 版本