저는 안드로이드 기반 휴대폰을 가지고 있으며 새 버전을 설치하려면 ADB가 필요합니다. 그러나 오늘까지 ADB는 완벽하게 작동했지만 오늘 오류가 발생했습니다."1.0.32 또는 최신 버전이 필요합니다." 예, 오류는 충분히 명확합니다. 문제는, 어떻게?
기록을 위해 ADB를 제거하려고 시도했습니다. With:
sudo apt-get remove android-tools-adb android-tools-fastboot
그런 다음 로 다시 설치했습니다:
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 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
참조 http://bernaerts.dyndns.org/linux/74-ubuntu/328-ubuntu-trusty-android-adb-fastboot-qtadb
여기]1에서 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]
이것이 가장 우아한 해결책은 아닐 수 있지만 저에게는 효과가 있다는 것을 인정합니다. 다른 우분투 머신에서는 Java 없이 플랫폼 도구만 사용하여 최소한의 설치를 관리했지만 이에 대한 메모를 찾을 수 없습니다.