'I want to compare two projects in Android studio
I have a couple Android Studio projects that are similar, and I want to know exactly where their source files differ. What is an easy way to do that?
Solution 1:[1]
Right click file/directory/project/module > click compare with > give the path to compare
EASY WAY TO FIND PATH : ( considering both projects are open in Android Studio) Switch to project you want to compare > right click file/directory/project/module > copy path > paste it back in select path dialog. BETTER to copy path first.
Verified : Android Studio 1.5.1
Solution 2:[2]
In Android studio 3.4.2 you can do by right click on
Select Android : app ? Compare Directories select proper path for your files and done.
In Android Studio Bumblebee : app ? Compare With or Ctrl+D :)
Solution 3:[3]
I'm highly recommend Compare Directories Plugin for Android Studio 2+.
Allows the fast comparison of two directories or archive files (jar, zip, war... and also tar/gz) based on file contents. Compared directories/archives are shown in a tree view to give a better and easier-to-read overall view of the differences.
Installation:
Open: File > Settings > Plugins Click on the button “Browse repositories”, find the “Compare Directories” plugin in the available plugins list, right click on it and choose install.
General usage instructions:
Execute the Compare Directories... menu command, select two directories or zip/jar/tar files containing files with the same file names and see the comparison results on the opened Compare Directories panel:
- Files and directories are shown depending on the differences in their contents: identical, different by blanks only, non-significantly different, different, left-only, right-only.
- Compared text file can be then edited within IDEA.
- Compared text file differences can be then viewed with the usual IDEA diff window.
- Compared class bytecode differences can be also viewed with the usual IDEA diff window.
- Files and directories can be copied from one side to the other.
You will find many more details in the plugin page: https://plugins.jetbrains.com/plugin/113-compare-directories
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Vikas Borkar |
| Solution 2 | |
| Solution 3 | equiman |


