git labでアンドロイドプロジェクトを作成します。私はパイプラインを使用しようとしています。Git labパイプラインAndroidプロジェクト
メッセージ
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
で失敗したビルドするにはどうすれば自動的にこのライセンスを受け入れることができますか? --no-ui --all
を追加するだけでは不十分です(既に追加しようとしています)。
ここで提示されたすべての解決策を試しました(ライセンス契約に同意して完了する必要があります)。
誰かが実際にgitのラボパイプラインを作成するために管理していますか?
私の.gitlab-ci.yml
以下。
image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "24"
ANDROID_BUILD_TOOLS: "25.0.3"
ANDROID_SDK_TOOLS: "25.0.3"
before_script:
- export ANDROID_HOME=$PWD/
- export PATH=$PATH:$PWD/
- apt-get --quiet update --yes
- apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip
- unzip android-sdk.zip
- echo y | tools/android --silent update sdk --no-ui --all --filter android-${ANDROID_COMPILE_SDK}
- echo y | tools/android --silent update sdk --no-ui --all --filter platform-tools
- echo y | tools/android --silent update sdk --no-ui --all --filter build-tools-${ANDROID_BUILD_TOOLS}
- echo y | tools/android --silent update sdk --no-ui --all --filter extra-android-m2repository
- echo y | tools/android --silent update sdk --no-ui --all --filter extra-google-google_play_services
- echo y | tools/android --silent update sdk --no-ui --all --filter extra-google-m2repository
- chmod +x ./gradlew
stages:
- build
build:
stage: build
script:
- ./gradlew assembleDebug --stacktrace
artifacts:
paths:
- app/build/outputs/
' sdkmanager'コマンドはツールzipには含まれていないので、sdk全体をダウンロードする必要があります。 – Panciz