subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.23k stars 199 forks source link

Build apk failing #158

Closed ameyjadiye closed 2 years ago

ameyjadiye commented 2 years ago

Hi I'm using as-is sample code to release apk and its failing in GitHub actions.

Run flutter build apk
  flutter build apk
  shell: /usr/bin/bash -e {0}
  env:
    JAVA_VERSION: 11
    FLUTTER_VERSION: [2](https://github.com/abvss/abvss_mobile_app/runs/6375515857?check_suite_focus=true#step:9:2).10.5
    JAVA_HOME: /opt/hostedtoolcache/Java_Zulu_jdk/11.0.15-10/x6[4](https://github.com/abvss/abvss_mobile_app/runs/6375515857?check_suite_focus=true#step:9:4)
    FLUTTER_ROOT: /opt/hostedtoolcache/flutter
    PUB_CACHE: /opt/hostedtoolcache/flutter/.pub-cache

Building without sound null safety
For more information see https://dart.dev/null-safety/unsound-null-safety

Running Gradle task 'assembleRelease'...                        
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:stripReleaseDebugSymbols'.
> No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

How can we fix it ?

ameyjadiye commented 2 years ago

Never mind, found the solution in someone else raised issue #116