Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Android Studio's diff and merge via CLI with opened instance

Android Studio lets you perform diff and merge b/w files via CLI using the studio command. Like:

/usr/local/bin/studio diff file1.txt file2.txt

If you execute the above command without having any Studio instances open already, it'll start one and show the diff view in it.

If you execute it with a Studio instance already open, then it says "No IDE instance has been found. New one will be started.", returns focus to Studio, but does nothing! (no diff view)

(I want this functionality to be able to use studio command as git diff/mergetool)

like image 847
Vibin Avatar asked Sep 04 '26 01:09

Vibin


1 Answers

Try recreating the command-line launcher using Tools - Create Command-line Launcher...

Usually, such issues happen when an older launcher is used with newer IDE version.

like image 141
Dmitriy Smirnov Avatar answered Sep 05 '26 16:09

Dmitriy Smirnov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!