mortenjust / androidtool-mac

One-click screenshots, video recordings, app installation for iOS and Android
Apache License 2.0
5.43k stars 325 forks source link

using a built-in out-of-date version of 'adb' #132

Open jpage4500 opened 6 years ago

jpage4500 commented 6 years ago

I use a few android tools along with Android Tool (ie: LogRabbit and some command-line tools). But, I've been noticing a lot of these warnings where adb has to restart itself and it's becoming kind of a pain:

$ adb devices
List of devices attached
adb server version (36) doesn't match this client (39); killing...
* daemon started successfully *

I tracked it down to Android Tool using a built-in version of 'adb' that's older than the one I have installed.

Can you just use the users built-in version of adb if it's installed? Or at least worst-case update the version that's there today?

~/Library$ /Applications/AndroidTool.app/Contents/Resources/adb version
Android Debug Bridge version 1.0.36
Revision 88f64719d756-android

~/Library$ ./Android/sdk/platform-tools/adb version
Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
jpage4500 commented 6 years ago

FWIW - I did this and it seems to work:

cp /Users/jpage/Library/Android/sdk/platform-tools/adb /Applications/AndroidTool.app/Contents/Resources/adb
jpage4500 commented 6 years ago

Just installed on a new mac and here's a better way.. just create a symbolic link to the actual 'adb' executable. Just make sure you open Android Tool at least once after downloading before doing this.

$ rm /Applications/AndroidTool.app/Contents/Resources/adb
$ ln -s ~/Library/Android/sdk/platform-tools/adb /Applications/AndroidTool.app/Contents/Resources/

of course that's assuming you have the Android SDK in the path above..

20015jjw commented 6 years ago

I feel like there should be a way to use an external adb somewhere in the setting.

BTW is this project out of maintenance?

muandrew commented 5 years ago

https://github.com/mortenjust/androidtool-mac/pull/142 resolves this.