问题
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