diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f1bfa53..30e8ee3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,14 +22,23 @@ jobs: distribution: "temurin" java-version: "17" - - name: Set Up Android SDK - uses: systemsetup/android-sdk-action@v1 - with: - sdk-version: "35.0.0" # Install specific SDK version - build-tools: "35.0.0" # Install specific build tools version + - name: Install Android SDK Command Line Tools + run: | + mkdir -p $HOME/android-sdk + cd $HOME/android-sdk + wget https://dl.google.com/android/repository/commandlinetools-linux-8512546_latest.zip + unzip commandlinetools-linux-8512546_latest.zip + mkdir cmdline-tools + mv cmdline-tools/* cmdline-tools + rm -rf commandlinetools-linux-8512546_latest.zip + + - name: Install Android SDK Platform and Build Tools + run: | + yes | $HOME/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=$HOME/android-sdk --update + yes | $HOME/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=$HOME/android-sdk "platforms;android-35" "build-tools;35.0.0" - name: Accept Android SDK Licenses - run: yes | sdkmanager --licenses + run: yes | $HOME/android-sdk/cmdline-tools/bin/sdkmanager --sdk_root=$HOME/android-sdk --licenses - name: Setup Flutter uses: subosito/flutter-action@v2