subosito / flutter-action

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

Build failing for APK #137

Closed d1y closed 2 years ago

d1y commented 2 years ago

rather strange error :(

https://github.com/waifu-project/movie/runs/5142916557?check_suite_focus=true

../../../hostedtoolcache/flutter/2.5.3-stable/x64/.pub-cache/hosted/pub.dartlang.org/cupertino_list_tile-0.2.1/lib/src/list_tile.dart:165:11: Error: 'ListTileThemeData' isn't a type.
[45](https://github.com/waifu-project/movie/runs/5142916557?check_suite_focus=true#step:10:45)
    final ListTileThemeData tileTheme = ListTileTheme.of(context);
[46](https://github.com/waifu-project/movie/runs/5142916557?check_suite_focus=true#step:10:46)
          ^^^^^^^^^^^^^^^^^

I compile it successfully on my MacBook

➜  movie git:(ios_dev) ✗ flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

💪 Building with sound null safety 💪

Note: /usr/local/Caskroom/flutter/2.0.4/flutter/.pub-cache/hosted/mirrors.tuna.tsinghua.edu.cn%47dart-pub%47/path_provider_android-2.0.11/android/src/main/java/io/flutter/plugins/pathprovider/PathProviderPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Running Gradle task 'assembleRelease'...                          396.0s
✓  Built build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk (8.6MB).

what happed?

➜  movie git:(ios_dev) ✗ flutter --version
Flutter 2.5.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 18116933e7 (4 months ago) • 2021-10-15 10:46:35 -0700
Engine • revision d3ea636dc5
Tools • Dart 2.14.4

https://github.com/waifu-project/movie/blob/master/.github/workflows/release.yml

Very confused and strange question, hope to answer, is it my operation problem?

kuhnroyal commented 2 years ago

/usr/local/Caskroom/flutter/2.0.4

This is a different flutter version. You have a version missmatch between your local and the runners Flutter version.