私はアンドロイドベースの携帯電話を持っており、新しいバージョンをインストールするためにADBが必要です。しかし、今日までADBは完璧に動作していたのですが、今日になってエラーが出てしまいました。問題は、どうやって?
念のため、ADBの削除を試みました。 で。
sudo apt-get remove android-tools-adb android-tools-fastboot
その後、.NETで再インストールしました。
sudo apt-get install android-tools-adb android-tools-fastboot
このコマンドを実行する前のADBのバージョンは1.0.31で、まだ1.0.31のままです。しかし、ここ( http://developer.android.com/sdk/index.html#Other )を見る限り、新しいバージョン、1.0.35があるようです。しかし、ターミナルでは1.0.31しか表示されません。 1.0.35のzipをダウンロードしたのですが、どうしたらいいのかわかりません。
ADBをアップグレードするにはどうしたらいいですか?
最新のSDKを使用しているが、adbツールが古いものを使用しているという場合。
使ってみてください。
# 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
Refernce http://bernaerts.dyndns.org/linux/74-ubuntu/328-ubuntu-trusty-android-adb-fastboot-qtadb
adbを含む最新のSDKはこちらからダウンロードできます。 このアーカイブを解凍すると、SDKのインストール方法を説明したReadmeがあります。 参考までにここに掲載しておきます。
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/
インストールが完了したら(Javaがインストールされていない場合はインストールしなければなりません)、android-sdk-linux/platform-toolsに移動し、そこからadbを実行して次のように入力します。
./adb [options]
これは最もエレガントな解決策ではないかもしれませんが、私にとってはうまくいきました。 別のUbuntuマシンでは、platform-toolsだけでJavaを使わずにミニマムインストールしたことがあるようですが、そのときのメモが見つかりません。