Statistic is a very powerful plugin for IntelliJ IDEA, which is very useful to show files sorted by their extension along with size, line count LOC etc.
However, if you install this into the latest version of Android Studio, you are most likely to get the below error message:
Plugin ‘Statistic’ failed to initialize and will be disabled. Please restart Android Studio. com.intellij.diagnostic.PluginException: com/jpower8/idea/plugin/statictic/StatisticApplicationComponent : Unsupported major.minor version 51.0 [Plugin: Statistic] at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:130).
To troubleshoot this problem, follow below procedures:
Select Android Studio in Applications:
Right click Android Studio > Show Package Contents
Open the Info.plist
Change the JVMVersion from 1.6* or whatever –> 1.8
Of course you have to install JDK 1.8! Restart Android Studio and enjoy!