我一直在提交提交记录
但是,我遇到了错误
* What went wrong:
Execution failed for task ':app:stripReleaseDebugSymbols'.
> No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.0.6113669
以下是CI代码(Flutter CI - Customer):
name: Flutter CI - Customer
on:
push:
branches:
- master
paths:
- holinoti_customer/**
- .github/workflows/flutter-customer.yml
pull_request:
branches:
- master
paths:
- holinoti_customer/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.0.0
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11.0.2
- name: Android NDK toolchain Setup
uses: ravinderjangra/android-ndk-toolchain-setup@0.1
with:
api: '21'
arch: 'arm'
install-location: 'toolchains'
- uses: subosito/flutter-action@v1.1.1
with:
flutter-version: '1.12.x' # you can use 1.12
- name: Install dependencies
run: flutter pub get
working-directory: holinoti_customer
- name: Test Build
run: flutter build apk
working-directory: holinoti_customer
在我的本地项目中,我在Android Studio的项目结构中设置了NDK路径。 然而,此解决方案无法应用于Github Action。
因此,我尝试使用“Android NDK工具链设置”,但仍然失败。