Go to https://plugins.jetbrains.com/idea/plugin/4509-statistic and install the latest version
To install
Run Android Studio
From the menu bar, select File-->Settings
Under IDE Settings, click Plugins, and then click Install plugin from disk
Navigate to the folder where you downloaded the plugin and double-click it
Restart Android Studio
To count the lines
21/05/2015
If you cannot see the Statistics options, do the following:
Select VIEW from the toolbar.
Select TOOLS Windows.
Choose STATISTICS.
You will see the statistics of your project and at the bottom, there is TOTAL section which displays the total lines under the Column of LINES.
You could try this plugin (It is for IntelliJ but should work with AS): http://plugins.jetbrains.com/plugin/?idea&id=4509
Jetbrain's statistics plugin is counting only .java files. It is not accurate for getting android app source line of code.
We can use locmatrics for this.
http://www.locmetrics.com/
This will return loc for all the entered extensions.
Please set a valid output directory while checking this. Otherwise garbage files will be generated inside source directory
Goto the link https://plugins.jetbrains.com/plugin/4509-statistic and install it.
Install plugin from official Jetbrains plugin site,
After installing, just click on the TAB "Statistic" at the bottom of the screen (left side),
Click "Refresh" button to run statistic for whole project,
Click "Refresh on selection" button to run statistic for selected directory,
Click "Settings" button to customize plugin behavior,
Adjust "Excluded file types" with all extensions which you want to remove from the statistic (e.g. class;jar;...),
Adjust "Seperate TABs file types" with all extensions which you want to have in separate tab (e.g. php;java;...),
Size - total size of the file,
Size Min - size of the smallest file of the given type,
Size Max - size of the biggest file of the given type,
Size Avg - average size of the file of the given type.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With