如何正确安装IntelliJ IDEA的Google Java格式插件? [英] How do I correctly install the Google Java Format plugin for IntelliJ IDEA?

查看:1022
本文介绍了如何正确安装IntelliJ IDEA的Google Java格式插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想安装用于IntelliJ IDEA的Google Java格式插件.我拥有最新的2016年社区版版本(内部版本#IC-163.11103.6,2017年1月16日),因此该插件的1.2版应该兼容.但是,当我尝试安装它时,出现错误:

I want to install the Google Java Format plugin for IntelliJ IDEA. I have the latest 2016 community edition build (build #IC-163.11103.6, Jan 16th 2017), so version 1.2 of the plugin should be compatible. However, when I try to install it, I get an error:

插件"google-java-format"与此版本不兼容.

Plugin 'google-java-format' is incompatible with this version.

四处寻找解决方案,我发现如果不支持IntelliJ版本,则会显示此错误.但是,插件页面指出我拥有的版本163应该兼容.

Looking around for a solution, I found that this error is shown if the IntelliJ version isn't supported. However, the plugin page states that build 163, which is the one I have, should be compatible.

此外,从IntelliJ内置插件回购浏览器中搜索插件时,我只能找到(并安装)1.0版.我猜我的IntelliJ插件管理器认为它可以在较旧的版本上运行,或者该插件实际上与最新版本不兼容.

Also, when searching for the plugin from within IntelliJ's built-in plugin repo browser, I can only find (and install) version 1.0. I guess my IntelliJ's plugin manager thinks it runs on an older build, or that the plugin actually isn't compatible with the latest build.

安装最新的Google Java格式插件的正确方法是什么?

What is the correct method to install the latest Google Java Format plugin?

此外:如何从磁盘安装插件? 此帮助页面不会告诉我是我应该安装google-java-format.zip文件,还是将其解压缩并单独安装其中的2个.jar文件.

Besides that: how do I install a plugin from disk? This help page doesn't tell me whether I should install the google-java-format.zip file, or extract it and install the 2 .jar files found inside separately.

推荐答案

尝试更新google-java-format插件. 2017年4月14日发布了与163个以上版本兼容的更新.

Try updating the google-java-format plugin. An update was published on April 14th, 2017 that is compatible with 163+ builds.

这篇关于如何正确安装IntelliJ IDEA的Google Java格式插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆