How do I correctly install the Google Java Format plugin for IntelliJ IDEA?

点点圈 提交于 2020-01-03 16:52:07

问题


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:

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

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.

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.

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

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.


回答1:


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



来源:https://stackoverflow.com/questions/41780576/how-do-i-correctly-install-the-google-java-format-plugin-for-intellij-idea

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!