Closed
Bug 1255661
Opened 9 years ago
Closed 9 years ago
Cannot run logcat: adb server deemed out-of-date & killed
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
All
Android
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: mcomella, Unassigned)
References
Details
afaik, I have three SDKs currently:
* /usr/local/opt/android-sdk (installed via brew)
* ~/.mozbuild (from mozilla)
* ~/.android-sdk (from latest sdk-manager-plugin changes)
I have /usr/local/bin in my path and typically run Android binaries from there. However, with a recent pull of fx-team, when trying to run `mach build <robocop-stuff> && mach robocop <test>` in one terminal and `adb logcat` in another, I get a message in the logcat shell that the adb server is out-of-date and that it will kill it.
I tried running `adb logcat` from all three locations concurrently with my mach commands and it did not fix the issue. I don't have the ANDROID_HOME envvar set.
Nick, thoughts?
Flags: needinfo?(nalexander)
Comment 1•9 years ago
|
||
> Nick, thoughts?
Not really. I saw another contributor with the same symptoms in #mobile, but haven't a clue what he did to get unstuck.
A quick search on the web suggests this is a *device* incompatibility -- namely, that the device itself has an incompatible version of the ADB server installed. This might be triggered by using more modern tools on your build host? But I am not aware of anything that's really changed here. Did you upgrade Android tooling, like fetching the Android N preview?
Flags: needinfo?(nalexander)
Comment 2•9 years ago
|
||
(In reply to Michael Comella (:mcomella) from comment #0)
> afaik, I have three SDKs currently:
> * /usr/local/opt/android-sdk (installed via brew)
> * ~/.mozbuild (from mozilla)
> * ~/.android-sdk (from latest sdk-manager-plugin changes)
Oh hai. Did the sdk-manager-plugin download this? It shouldn't have.
Updated•9 years ago
|
Flags: needinfo?(michael.l.comella)
Comment 3•9 years ago
|
||
fwiw, I would expect 'mach robocop' to use http://hg.mozilla.org/mozilla-central/annotate/f0c0480732d3/testing/mozbase/mozrunner/mozrunner/devices/android_device.py#l583 to find adb. In my experience, it is usually substs["ADB"] that finds it and it is usually in .mozbuild.
| Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Nick Alexander :nalexander from comment #2)
> > * ~/.android-sdk (from latest sdk-manager-plugin changes)
>
> Oh hai. Did the sdk-manager-plugin download this? It shouldn't have.
I assume so – the modification date is 3/10 and I didn't put anything there intentionally.
Flags: needinfo?(michael.l.comella)
| Reporter | ||
Comment 5•9 years ago
|
||
Got a more specific error output, adb is coming from my /usr/local/opt installation:
adb server version (32) doesn't match this client (35); killing...
Come to think of it, I had updated the android-sdk in homebrew, which deleted my platform-tools installs and the only available platform tools (at the time) were the preview versions (for Android N). I appear to have fixed this by installing the stable platform tools (now available) and uninstalling the preview platform tools.
Thanks for your help, everybody!
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WORKSFORME
Updated•6 years ago
|
Product: Firefox for Android → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•