W 2026 r., aby dostosować się do naszego modelu stabilnego rozwoju trunk i zapewnić stabilność platformy w ekosystemie, będziemy publikować kod źródłowy w AOSP w drugim i czwartym kwartale. Do tworzenia i współtworzenia AOSP używaj gałęzi android-latest-release. Gałąź manifestu android-latest-release będzie zawsze odwoływać się do najnowszej wersji przesłanej do AOSP. Więcej informacji znajdziesz w artykule Zmiany w AOSP.
Google używa technologii AI do tłumaczenia treści na Twój preferowany język. Tłumaczenia wygenerowane przez AI mogą zawierać błędy.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
AndroidBuildAPIHelper
public
class
AndroidBuildAPIHelper
extends Object
| java.lang.Object
|
| ↳ |
com.google.android.tradefed.util.androidbuildapi.AndroidBuildAPIHelper
|
Metoda pomocnicza służąca do tworzenia klienta Android Build.
Podsumowanie
Stałe
BUILD_ENV_INVOCATION_CONTEXT_KEY
public static final String BUILD_ENV_INVOCATION_CONTEXT_KEY
Wartość stała:
"android-build-environment"
Konstruktory publiczne
AndroidBuildAPIHelper
public AndroidBuildAPIHelper ()
Metody publiczne
getClient
public static Androidbuildinternal getClient (String environment)
| Parametry |
environment |
String |
| Zwraca |
Androidbuildinternal |
|
| Zgłasza |
GeneralSecurityException |
|
IOException |
|
getLegacyClient
public static Androidbuildinternal getLegacyClient (String environment)
Tworzenie klienta w wersji 2
| Parametry |
environment |
String |
| Zwraca |
Androidbuildinternal |
|
| Zgłasza |
GeneralSecurityException |
|
IOException |
|
getTestStorageClient
public static Androidbuildinternal getTestStorageClient (String rootUrl,
String servicePath)
| Parametry |
rootUrl |
String |
servicePath |
String |
| Zwraca |
Androidbuildinternal |
|
| Zgłasza |
FileNotFoundException |
|
GeneralSecurityException |
|
IOException |
|
getTestStorageClient
public static Androidbuildinternal getTestStorageClient (String environment)
| Parametry |
environment |
String |
| Zwraca |
Androidbuildinternal |
|
| Zgłasza |
FileNotFoundException |
|
GeneralSecurityException |
|
IOException |
|
getV4BranchClient
public static BranchServiceClient getV4BranchClient (String environment)
| Parametry |
environment |
String |
| Zwraca |
BranchServiceClient |
|
| Zgłasza |
GeneralSecurityException |
|
IOException |
|
getV4BuildArtifactClient
public static BuildArtifactServiceClient getV4BuildArtifactClient (String environment)
| Parametry |
environment |
String |
| Zwraca |
BuildArtifactServiceClient |
|
| Zgłasza |
GeneralSecurityException |
|
IOException |
|
getV4BuildClient
public static BuildServiceClient getV4BuildClient (String environment)
| Parametry |
environment |
String |
| Zwraca |
BuildServiceClient |
|
| Zgłasza |
GeneralSecurityException |
|
IOException |
|
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2026-06-22 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2026-06-22 UTC."],[],[]]