Wie kann man die neueste Version von ADB aktualisieren oder neu installieren?

Ich habe ein Android-basiertes Telefon und ich brauche ADB für die Installation von neuen Versionen. Allerdings, bis heute ADB funktionierte perfekt, aber heute habe ich einen Fehler, es sagt "Sie benötigen 1.0.32 oder neuere Version." Ja, Fehler ist klar genug. Das Problem ist, wie?

Für die Aufzeichnungen, ich habe versucht, ADB zu entfernen. Mit:

sudo apt-get remove android-tools-adb android-tools-fastboot

Dann habe ich es neu installiert mit:

sudo apt-get install android-tools-adb android-tools-fastboot

Vor diesen Befehlen war meine ADB-Version 1.0.31, sie ist immer noch 1.0.31. Aber hier ( http://developer.android.com/sdk/index.html#Other) Soweit ich sehe, gibt es eine neue Version, 1.0.35. Aber mit Terminal Alles, was ich bekomme, ist 1.0.31. Ich habe 1.0.35 zip heruntergeladen, aber ich weiß nicht, was ich damit machen soll.

Wie kann ich mein ADB upgraden?

Wenn Sie denken, Sie haben das neueste SDK, aber das adb-Tool ist älter,

verwenden,

# adb version
Android Debug Bridge version 1.0.31
# wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
# sudo mv adb /usr/bin/adb
# sudo chmod +x /usr/bin/adb
# adb version
Android Debug Bridge version 1.0.32

Verweis auf http://bernaerts.dyndns.org/linux/74-ubuntu/328-ubuntu-trusty-android-adb-fastboot-qtadb

Kommentare (4)
Lösung

Sie können das neueste SDK einschließlich adb hier herunterladen. Wenn Sie dieses Archiv entpacken, finden Sie eine Readme-Datei, die erklärt, wie Sie das SDK installieren. Ich führe sie hier zu Ihrer Information auf.

Welcome to the Android SDK!

The Android SDK archive initially contains only the basic SDK tools. It does
not contain an Android platform or any third-party libraries. In fact, it
doesn't even have all the tools you need to develop an application.

In order to start developing applications, you must install the Platform-tools
and at least one version of the Android platform, using the SDK Manager.

Platform-tools contains build tools that are periodically updated to support new
features in the Android platform (which is why they are separate from basic
SDK tools), including adb, dexdump, and others.

To install Platform-tools, Android platforms and other add-ons, you must
have an Internet connection, so if you plan to use the SDK while
offline, please make sure to download the necessary components while online.

To start the SDK Manager, please execute the program "android".

From the command-line you can also directly trigger an update by
executing:
  tools/android update sdk --no-ui

Tip: use --help to see the various command-line options.

For more information, please consult the Android web site at
  http://developer.android.com/sdk/

Nach der Installation (Sie müssen Java installieren, wenn Sie es noch nicht haben), können Sie zu android-sdk-linux/platform-tools navigieren und adb von dort aus ausführen, indem Sie

./adb [options]

Ich gebe offen zu, dass dies vielleicht nicht die eleganteste Lösung ist, aber bei mir funktioniert sie. Ich weiß, dass ich auf einem anderen Ubuntu-Rechner eine Minimalinstallation nur mit platform-tools ohne Java hinbekommen habe, aber ich kann meine Notizen dazu nicht finden.

Kommentare (7)

In Erweiterung der Antwort von Organic Marble's, um nur die neuesten Tools zu installieren (nicht das gesamte SDK), verwenden Sie den Plattform-Tool-Filter wie unten:

tools/android update sdk -t platform-tool --no-ui
Kommentare (1)