flet icon indicating copy to clipboard operation
flet copied to clipboard

flutter-build-args=--split-per-abi

Open osamalzabidi opened this issue 2 years ago • 2 comments

Duplicate Check

  • [X] I have searched the opened issues and there are no duplicates

Describe the bug

╔════════════════════════════════════════════════════════════════════════════╗ ║ Welcome to Flutter! - https://flutter.dev/ ║ ║ ║ ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║ ║ statistics and basic crash reports. This data is used to help improve ║ ║ Flutter tools over time. ║ ║ ║ ║ Flutter tool analytics are not sent on the very first run. To disable ║ ║ reporting, type 'flutter config --no-analytics'. To display the current ║ ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║ ║ event will be sent, and then no further information will be sent by the ║ ║ Flutter tool. ║ ║ ║ ║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║ ║ The Google Privacy Policy describes how data is handled in this service. ║ ║ ║ ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║ ║ crash reports to Google. ║ ║ ║ ║ Read about data we send with crash reports: ║ ║ https://flutter.dev/to/crash-reporting ║ ║ ║ ║ See Google's privacy policy: ║ ║ https://policies.google.com/privacy ║ ║ ║ ║ To disable animations in this tool, use ║ ║ 'flutter config --no-cli-animations'. ║ ╚════════════════════════════════════════════════════════════════════════════╝

Analytics reporting disabled.

You may need to restart any open editors for them to read new settings. [01:37:35] Flutter bootstrap directory: /tmp/flet_flutter_build_XpfO6DqVzY
Additional Flutter dependencies: {'flet_lottie': 'any'}
Created Flutter bootstrap project from
gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Copying /home/runner/work/Yemen-Net/Yemen-Net/assets/icon.png to
/tmp/flet_flutter_build_XpfO6DqVzY/images
Customized app icons and splash images ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b in/dart', 'run', 'flutter_launcher_icons']
════════════════════════════════════════════ FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════

• Creating default icons Android • Overwriting the default Android launcher icon with a new icon • Overwriting default iOS launcher icon with new icon Creating Icons for Web... Creating Icons for Windows... Creating Icons for MacOS...

✓ Successfully generated launcher icons [01:37:46] Generated app icons ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b in/dart', 'run', 'flutter_native_splash:create']
[Android] Creating default splash images [Android] Creating dark mode splash images [Android] Creating default android12splash images [Android] Creating dark mode android12splash images [Android] Updating launch background(s) with splash image path... [Android] - android/app/src/main/res/drawable/launch_background.xml [Android] - android/app/src/main/res/drawable-night/launch_background.xml [Android] - android/app/src/main/res/drawable-v21/launch_background.xml [Android] - android/app/src/main/res/drawable-night-v21/launch_background.xml [Android] Updating styles... [Android] - android/app/src/main/res/values-v31/styles.xml [Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values-night-v31/styles.xml [Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values/styles.xml [Android] - android/app/src/main/res/values-night/styles.xml [iOS] Creating images [iOS] Creating dark mode images [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible [Web] Creating images [Web] Creating images [Web] Creating background images [Web] Creating CSS [Web] Updating index.html

✅ Native splash complete. Now go finish building something awesome! 💪 You rock! 🤘🤩 Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash

[01:37:49] Generated splash screens ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b in/dart', 'run', 'serious_python:main', 'package',
'/home/runner/work/Yemen-Net/Yemen-Net', '--mobile', '--platform',
'mobile', '--dep-mappings', 'flet=flet-embed', '--req-deps',
'flet-embed', '--exclude', 'build']
Running package command Creating asset directory: /tmp/flet_flutter_build_XpfO6DqVzY/app Copying Python app from /home/runner/work/Yemen-Net/Yemen-Net to /tmp/serious_python_tempYJEKSD Configured mobile platform with sitecustomize.py at /tmp/serious_python_sitecustomizeUADODO/sitecustomize.py Installing dependencies [bs4==0.0.2, flet-embed==0.24.1, requests==2.32.3, humanize==4.10.0, pydal==20240906.1] with pip command to /tmp/serious_python_tempYJEKSD/pypackages Downloading Python distributive from https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz Extracting Python distributive from /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/hostpython3.11_IIWLDI Compiling Python sources at /tmp/serious_python_tempYJEKSD Delete unnecessary files with extensions: [.py, .c, .h, .typed, .exe, .so, .a, .pdb, .pyd, .dll] Delete unnecessary files and directories: [pycache, bin] Creating app archive at /tmp/flet_flutter_build_XpfO6DqVzY/app/app.zip from /tmp/serious_python_tempYJEKSD Deleting temp directory /tmp/serious_python_tempYJEKSD Deleting sitecustomize directory /tmp/serious_python_sitecustomizeUADODO Deleting Python directory /tmp/hostpython3.11_IIWLDI [01:37:57] Packaged Python app ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',
'build', 'apk', '--build-number', '1727139241', '--build-name',
'4.0.0', '--release', '--split-per-abi']
Resolving dependencies... Downloading packages... collection 1.18.0 (1.19.0 available) fl_chart 0.68.0 (0.69.0 available) flutter_launcher_icons 0.13.1 (0.14.0 available) flutter_lints 2.0.3 (4.0.0 available) http_parser 4.0.2 (4.1.0 available) js 0.6.7 (0.7.1 available) lints 2.1.1 (4.0.0 available) material_color_utilities 0.11.1 (0.12.0 available) meta 1.15.0 (1.16.0 available) ! package_info_plus 8.0.2 (overridden) screen_retriever 0.1.9 (0.2.0 available) sensors_plus 4.0.2 (6.0.1 available) sensors_plus_platform_interface 1.2.0 (2.0.0 available) toml 0.15.0 (0.16.0 available) url_strategy 0.2.0 (0.3.0 available) ! wakelock_plus 1.2.8 (overridden) ! web 1.0.0 (overridden) web_socket_channel 2.4.5 (3.0.1 available) window_manager 0.3.9 (0.4.2 available) Got dependencies! 16 packages have newer versions incompatible with dependency constraints. Try flutter pub outdated for more information.

Running Gradle task 'assembleRelease'...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where: Build file '/tmp/flet_flutter_build_XpfO6DqVzY/android/build.gradle' line: 25

  • What went wrong: A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'. Conflicting configuration : 'armeabi-v7a,arm64-v8a,x86_64' in ndk abiFilters cannot be present when splits abi filters are set : armeabi-v7a,x86_64,arm64-v8a

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org./ ==============================================================================

2: Task failed with an exception.

  • Where: Build file '/tmp/flet_flutter_build_XpfO6DqVzY/android/build.gradle' line: 25

  • What went wrong: A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'. Conflicting configuration : 'armeabi-v7a,arm64-v8a,x86_64' in ndk abiFilters cannot be present when splits abi filters are set : armeabi-v7a,x86_64,arm64-v8a

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org./ ==============================================================================

BUILD FAILED in 1m 58s Running Gradle task 'assembleRelease'... 119.5s Gradle task assembleRelease failed with exit code 1 [01:40:03] Deleting Flutter bootstrap directory
/tmp/flet_flutter_build_XpfO6DqVzY
Error building Flet app - see the log of failed command above.
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',
'--version']
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',
'doctor']
[01:40:04] Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Ubuntu 22.04.5 LTS
6.8.0-1014-azure, locale C.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK
version 35.0.0)
✗ Android SDK file not found: adb.
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt
install ninja-build), or can be downloaded from
https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux
development.
They are likely available from your distribution (e.g.: apt
install libgtk-3-dev)
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] Network resources

       ! Doctor found issues in 3 categories.                               

Error: Process completed with exit code 1.

Code sample

Code

To reproduce

╔════════════════════════════════════════════════════════════════════════════╗ ║ Welcome to Flutter! - https://flutter.dev/ ║ ║ ║ ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║ ║ statistics and basic crash reports. This data is used to help improve ║ ║ Flutter tools over time. ║ ║ ║ ║ Flutter tool analytics are not sent on the very first run. To disable ║ ║ reporting, type 'flutter config --no-analytics'. To display the current ║ ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║ ║ event will be sent, and then no further information will be sent by the ║ ║ Flutter tool. ║ ║ ║ ║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║ ║ The Google Privacy Policy describes how data is handled in this service. ║ ║ ║ ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║ ║ crash reports to Google. ║ ║ ║ ║ Read about data we send with crash reports: ║ ║ https://flutter.dev/to/crash-reporting ║ ║ ║ ║ See Google's privacy policy: ║ ║ https://policies.google.com/privacy ║ ║ ║ ║ To disable animations in this tool, use ║ ║ 'flutter config --no-cli-animations'. ║ ╚════════════════════════════════════════════════════════════════════════════╝

Analytics reporting disabled.

You may need to restart any open editors for them to read new settings. [01:37:35] Flutter bootstrap directory: /tmp/flet_flutter_build_XpfO6DqVzY
Additional Flutter dependencies: {'flet_lottie': 'any'}
Created Flutter bootstrap project from
gh:flet-dev/flet-build-template with ref 0.24.1 ✅
Copying /home/runner/work/Yemen-Net/Yemen-Net/assets/icon.png to
/tmp/flet_flutter_build_XpfO6DqVzY/images
Customized app icons and splash images ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b in/dart', 'run', 'flutter_launcher_icons']
════════════════════════════════════════════ FLUTTER LAUNCHER ICONS (v0.13.1)
════════════════════════════════════════════

• Creating default icons Android • Overwriting the default Android launcher icon with a new icon • Overwriting default iOS launcher icon with new icon Creating Icons for Web... Creating Icons for Windows... Creating Icons for MacOS...

✓ Successfully generated launcher icons [01:37:46] Generated app icons ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b in/dart', 'run', 'flutter_native_splash:create']
[Android] Creating default splash images [Android] Creating dark mode splash images [Android] Creating default android12splash images [Android] Creating dark mode android12splash images [Android] Updating launch background(s) with splash image path... [Android] - android/app/src/main/res/drawable/launch_background.xml [Android] - android/app/src/main/res/drawable-night/launch_background.xml [Android] - android/app/src/main/res/drawable-v21/launch_background.xml [Android] - android/app/src/main/res/drawable-night-v21/launch_background.xml [Android] Updating styles... [Android] - android/app/src/main/res/values-v31/styles.xml [Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values-night-v31/styles.xml [Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project [Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project [Android] - android/app/src/main/res/values/styles.xml [Android] - android/app/src/main/res/values-night/styles.xml [iOS] Creating images [iOS] Creating dark mode images [iOS] Updating ios/Runner/Info.plist for status bar hidden/visible [Web] Creating images [Web] Creating images [Web] Creating background images [Web] Creating CSS [Web] Updating index.html

✅ Native splash complete. Now go finish building something awesome! 💪 You rock! 🤘🤩 Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash

[01:37:49] Generated splash screens ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b in/dart', 'run', 'serious_python:main', 'package',
'/home/runner/work/Yemen-Net/Yemen-Net', '--mobile', '--platform',
'mobile', '--dep-mappings', 'flet=flet-embed', '--req-deps',
'flet-embed', '--exclude', 'build']
Running package command Creating asset directory: /tmp/flet_flutter_build_XpfO6DqVzY/app Copying Python app from /home/runner/work/Yemen-Net/Yemen-Net to /tmp/serious_python_tempYJEKSD Configured mobile platform with sitecustomize.py at /tmp/serious_python_sitecustomizeUADODO/sitecustomize.py Installing dependencies [bs4==0.0.2, flet-embed==0.24.1, requests==2.32.3, humanize==4.10.0, pydal==20240906.1] with pip command to /tmp/serious_python_tempYJEKSD/pypackages Downloading Python distributive from https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz Extracting Python distributive from /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/hostpython3.11_IIWLDI Compiling Python sources at /tmp/serious_python_tempYJEKSD Delete unnecessary files with extensions: [.py, .c, .h, .typed, .exe, .so, .a, .pdb, .pyd, .dll] Delete unnecessary files and directories: [pycache, bin] Creating app archive at /tmp/flet_flutter_build_XpfO6DqVzY/app/app.zip from /tmp/serious_python_tempYJEKSD Deleting temp directory /tmp/serious_python_tempYJEKSD Deleting sitecustomize directory /tmp/serious_python_sitecustomizeUADODO Deleting Python directory /tmp/hostpython3.11_IIWLDI [01:37:57] Packaged Python app ✅
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',
'build', 'apk', '--build-number', '1727139241', '--build-name',
'4.0.0', '--release', '--split-per-abi']
Resolving dependencies... Downloading packages... collection 1.18.0 (1.19.0 available) fl_chart 0.68.0 (0.69.0 available) flutter_launcher_icons 0.13.1 (0.14.0 available) flutter_lints 2.0.3 (4.0.0 available) http_parser 4.0.2 (4.1.0 available) js 0.6.7 (0.7.1 available) lints 2.1.1 (4.0.0 available) material_color_utilities 0.11.1 (0.12.0 available) meta 1.15.0 (1.16.0 available) ! package_info_plus 8.0.2 (overridden) screen_retriever 0.1.9 (0.2.0 available) sensors_plus 4.0.2 (6.0.1 available) sensors_plus_platform_interface 1.2.0 (2.0.0 available) toml 0.15.0 (0.16.0 available) url_strategy 0.2.0 (0.3.0 available) ! wakelock_plus 1.2.8 (overridden) ! web 1.0.0 (overridden) web_socket_channel 2.4.5 (3.0.1 available) window_manager 0.3.9 (0.4.2 available) Got dependencies! 16 packages have newer versions incompatible with dependency constraints. Try flutter pub outdated for more information.

Running Gradle task 'assembleRelease'...

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where: Build file '/tmp/flet_flutter_build_XpfO6DqVzY/android/build.gradle' line: 25

  • What went wrong: A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'. Conflicting configuration : 'armeabi-v7a,arm64-v8a,x86_64' in ndk abiFilters cannot be present when splits abi filters are set : armeabi-v7a,x86_64,arm64-v8a

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org./ ==============================================================================

2: Task failed with an exception.

  • Where: Build file '/tmp/flet_flutter_build_XpfO6DqVzY/android/build.gradle' line: 25

  • What went wrong: A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'. Conflicting configuration : 'armeabi-v7a,arm64-v8a,x86_64' in ndk abiFilters cannot be present when splits abi filters are set : armeabi-v7a,x86_64,arm64-v8a

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org./ ==============================================================================

BUILD FAILED in 1m 58s Running Gradle task 'assembleRelease'... 119.5s Gradle task assembleRelease failed with exit code 1 [01:40:03] Deleting Flutter bootstrap directory
/tmp/flet_flutter_build_XpfO6DqVzY
Error building Flet app - see the log of failed command above.
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',
'--version']
Run subprocess:
['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',
'doctor']
[01:40:04] Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on Ubuntu 22.04.5 LTS
6.8.0-1014-azure, locale C.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK
version 35.0.0)
✗ Android SDK file not found: adb.
[✓] Chrome - develop for the web
[✗] Linux toolchain - develop for Linux desktop
✗ ninja is required for Linux development.
It is likely available from your distribution (e.g.: apt
install ninja-build), or can be downloaded from
https://github.com/ninja-build/ninja/releases
✗ GTK 3.0 development libraries are required for Linux
development.
They are likely available from your distribution (e.g.: apt
install libgtk-3-dev)
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] Network resources

       ! Doctor found issues in 3 categories.                               

Error: Process completed with exit code 1.

Expected behavior

No response

Screenshots / Videos

Captures

[Upload media here]

Operating System

Linux

Operating system details

ubuntu-latest

Flet version

0.24.1

Regression

I'm not sure / I don't know

Suggestions

The error comes from the NDK, so we need to edit build.gradle

Logs

Logs
[Paste your logs here]

Additional details

No response

osamalzabidi avatar Sep 24 '24 01:09 osamalzabidi

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) ✗ Android SDK file not found: adb.

Please follow this flutter guide and make flutter doctor shows no issues related to android.

ndonkoHenri avatar Sep 24 '24 10:09 ndonkoHenri

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) ✗ Android SDK file not found: adb.

Please follow this flutter guide and make flutter doctor shows no issues related to android.

I still get the same error!

Run flutter doctor
  ╔════════════════════════════════════════════════════════════════════════════╗
  ║                 Welcome to Flutter! - https://flutter.dev/                  ║
  ║                                                                            ║
  ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║
  ║ statistics and basic crash reports. This data is used to help improve      ║
  ║ Flutter tools over time.                                                   ║
  ║                                                                            ║
  ║ Flutter tool analytics are not sent on the very first run. To disable      ║
  ║ reporting, type 'flutter config --no-analytics'. To display the current    ║
  ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out    ║
  ║ event will be sent, and then no further information will be sent by the    ║
  ║ Flutter tool.                                                              ║
  ║                                                                            ║
  ║ By downloading the Flutter SDK, you agree to the Google Terms of Service.  ║
  ║ The Google Privacy Policy describes how data is handled in this service.   ║
  ║                                                                            ║
  ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and  ║
  ║ crash reports to Google.                                                   ║
  ║                                                                            ║
  ║ Read about data we send with crash reports:                                ║
  ║ https://flutter.dev/to/crash-reporting                                     ║
  ║                                                                            ║
  ║ See Google's privacy policy:                                               ║
  ║ https://policies.google.com/privacy                                        ║
  ║                                                                            ║
  ║ To disable animations in this tool, use                                    ║
  ║ 'flutter config --no-cli-animations'.                                      ║
  ╚════════════════════════════════════════════════════════════════════════════╝
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] Network resources
! Doctor found issues in 1 category.
Analytics reporting disabled.
You may need to restart any open editors for them to read new settings.
[13:33:45] Flutter bootstrap directory: /tmp/flet_flutter_build_EMfTOM3DH4      
           Additional Flutter dependencies: {'flet_lottie': 'any'}              
[13:33:46] Created Flutter bootstrap project from                               
           gh:flet-dev/flet-build-template with ref 0.24.1 ✅                   
           Copying /home/runner/work/Yemen-Net/Yemen-Net/assets/icon.png to     
           /tmp/flet_flutter_build_EMfTOM3DH4/images                            
           Customized app icons and splash images ✅                            
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b
           in/dart', 'run', 'flutter_launcher_icons']                           
  ════════════════════════════════════════════
     FLUTTER LAUNCHER ICONS (v0.13.1)                               
  ════════════════════════════════════════════
  
• Creating default icons Android
• Overwriting the default Android launcher icon with a new icon
• Overwriting default iOS launcher icon with new icon
Creating Icons for Web...
Creating Icons for Windows...
Creating Icons for MacOS...
✓ Successfully generated launcher icons
[13:33:55] Generated app icons ✅                                               
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b
           in/dart', 'run', 'flutter_native_splash:create']                     
[Android] Creating default splash images
[Android] Creating dark mode splash images
[Android] Creating default android12splash images
[Android] Creating dark mode android12splash images
[Android] Updating launch background(s) with splash image path...
[Android]  - android/app/src/main/res/drawable/launch_background.xml
[Android]  - android/app/src/main/res/drawable-night/launch_background.xml
[Android]  - android/app/src/main/res/drawable-v21/launch_background.xml
[Android]  - android/app/src/main/res/drawable-night-v21/launch_background.xml
[Android] Updating styles...
[Android]  - android/app/src/main/res/values-v31/styles.xml
[Android] No android/app/src/main/res/values-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-v31/styles.xml and adding it to your Android project
[Android]  - android/app/src/main/res/values-night-v31/styles.xml
[Android] No android/app/src/main/res/values-night-v31/styles.xml found in your Android project
[Android] Creating android/app/src/main/res/values-night-v31/styles.xml and adding it to your Android project
[Android]  - android/app/src/main/res/values/styles.xml
[Android]  - android/app/src/main/res/values-night/styles.xml
[iOS] Creating  images
[iOS] Creating dark mode  images
[iOS] Updating ios/Runner/Info.plist for status bar hidden/visible
[Web] Creating images
[Web] Creating images
[Web] Creating background images
[Web] Creating CSS
[Web] Updating index.html
✅ Native splash complete.
Now go finish building something awesome! 💪 You rock! 🤘🤩
Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash
[13:33:58] Generated splash screens ✅                                          
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/cache/dart-sdk/b
           in/dart', 'run', 'serious_python:main', 'package',                   
           '/home/runner/work/Yemen-Net/Yemen-Net', '--mobile', '--platform',   
           'mobile', '--dep-mappings', 'flet=flet-embed', '--req-deps',         
           'flet-embed', '--exclude', 'build']                                  
Running package command
Creating asset directory: /tmp/flet_flutter_build_EMfTOM3DH4/app
Copying Python app from /home/runner/work/Yemen-Net/Yemen-Net to /tmp/serious_python_tempZAJUPX
Configured mobile platform with sitecustomize.py at /tmp/serious_python_sitecustomizeTBKGIV/sitecustomize.py
Installing dependencies [bs4==0.0.2, flet-embed==0.24.1, requests==2.32.3, humanize==4.10.0, pydal==20240906.1] with pip command to /tmp/serious_python_tempZAJUPX/__pypackages__
Downloading Python distributive from https://github.com/indygreg/python-build-standalone/releases/download/20231002/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz
Extracting Python distributive from /tmp/cpython-3.11.6+20231002-x86_64-unknown-linux-gnu-install_only.tar.gz to /tmp/hostpython3.11_SOABTP
Compiling Python sources at /tmp/serious_python_tempZAJUPX
Delete unnecessary files with extensions: [.py, .c, .h, .typed, .exe, .so, .a, .pdb, .pyd, .dll]
Delete unnecessary files and directories: [__pycache__, bin]
Creating app archive at /tmp/flet_flutter_build_EMfTOM3DH4/app/app.zip from /tmp/serious_python_tempZAJUPX
Deleting temp directory /tmp/serious_python_tempZAJUPX
Deleting sitecustomize directory /tmp/serious_python_sitecustomizeTBKGIV
Deleting Python directory /tmp/hostpython3.11_SOABTP
[13:34:07] Packaged Python app ✅                                               
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',       
           'build', 'apk', '--build-number', '1727270941', '--build-name',      
           '4.0.0', '--release', '--analyze-size', '--target-platform',         
           'android-arm64', '--split-per-abi']                                  
Resolving dependencies...
Downloading packages...
  collection 1.18.0 (1.19.0 available)
  fl_chart 0.68.0 (0.69.0 available)
  flutter_launcher_icons 0.13.1 (0.14.1 available)
  flutter_lints 2.0.3 (4.0.0 available)
  http_parser 4.0.2 (4.1.0 available)
  js 0.6.7 (0.7.1 available)
  lints 2.1.1 (4.0.0 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  meta 1.15.0 (1.16.0 available)
! package_info_plus 8.0.2 (overridden)
  screen_retriever 0.1.9 (0.2.0 available)
  sensors_plus 4.0.2 (6.0.1 available)
  sensors_plus_platform_interface 1.2.0 (2.0.0 available)
  toml 0.15.0 (0.16.0 available)
  url_strategy 0.2.0 (0.3.0 available)
! wakelock_plus 1.2.8 (overridden)
! web 1.1.0 (overridden)
  web_socket_channel 2.4.5 (3.0.1 available)
  window_manager 0.3.9 (0.4.2 available)
Got dependencies!
16 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Running Gradle task 'assembleRelease'...                        
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Build file '/tmp/flet_flutter_build_EMfTOM3DH4/android/build.gradle' line: 25
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Conflicting configuration : 'armeabi-v7a,arm64-v8a,x86_64' in ndk abiFilters cannot be present when splits abi filters are set : arm64-v8a
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./
==============================================================================
2: Task failed with an exception.
-----------
* Where:
Build file '/tmp/flet_flutter_build_EMfTOM3DH4/android/build.gradle' line: 25
* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Conflicting configuration : 'armeabi-v7a,arm64-v8a,x86_64' in ndk abiFilters cannot be present when splits abi filters are set : arm64-v8a
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org./
==============================================================================
BUILD FAILED in 1m 17s
Running Gradle task 'assembleRelease'...                           78.0s
Gradle task assembleRelease failed with exit code 1
[13:35:27] Deleting Flutter bootstrap directory                                 
           /tmp/flet_flutter_build_EMfTOM3DH4                                   
           Error building Flet app - see the log of failed command above.       
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',       
           '--version']                                                         
           Run subprocess:                                                      
           ['/opt/hostedtoolcache/flutter/stable-3.24.3-x64/bin/flutter',       
           'doctor']                                                            
[13:35:29] Doctor summary (to see all details, run flutter doctor -v):          
           [✓] Flutter (Channel stable, 3.24.3, on Ubuntu 22.04.5 LTS           
           6.8.0-1014-azure, locale C.UTF-8)                                    
           [✓] Android toolchain - develop for Android devices (Android SDK     
           version 35.0.0)                                                      
           [✓] Chrome - develop for the web                                     
           [✓] Linux toolchain - develop for Linux desktop                      
           [!] Android Studio (not installed)                                   
           [✓] Connected device (2 available)                                   
           [✓] Network resources                                                
                                                                                
           ! Doctor found issues in 1 category.                                 
                                                                                
Error: Process completed with exit code 1

and this is my github workflow file:

name: Flet APK Build

on:
  workflow_dispatch:

env:
  # https://flet.dev/docs/publish#versioning
  BUILD_NUMBER: 1727270941
  BUILD_VERSION: 4.0.0
  PYTHON_VERSION: 3.12.5 #3.12.5
  FLUTTER_VERSION: 3.24.3 # 3.22.5, 3.24.5
  ANDROID_PLATFORM_TARGET: 'arm64' # arm, arm64, x64, x86

  PROJECT: 'Yemen Net'
  COMPANY_NAME: 'omamkaz'
  ORG_NAME: 'com.omamkaz.yemennet'
  PRODUCT: رصيد يمن نت
  DESCRIPTION: الاستعلام من رصيد يمن نت, بالأضافة الى بعض الخدمات و الاضافات الاخرى

jobs:
  build-apk:
    runs-on: ubuntu-latest

    steps:
    - name: Checkout code
      uses: actions/checkout@v4

    - name: Patch for APK build
      run: |
        sudo apt-get update -y
        sudo apt-get install -y \
          curl \
          git \
          unzip \
          xz-utils \
          zip \
          libglu1-mesa \
          ninja-build \
          libgtk-3-dev \
          build-essential \
          python3-dev \
          libc6:amd64 libstdc++6:amd64 \
          libbz2-1.0:amd64 libncurses5:amd64

    - name: Setup Python ${{ env.PYTHON_VERSION }}
      uses: actions/setup-python@v5
      with:
        python-version: ${{ env.PYTHON_VERSION }}
        architecture: 'x64'

    - name: Setup Python Environment and Install Dependencies
      run: |
        python -m pip install --upgrade pip
        pip install -r requirements.txt

    - name: Setup Flutter ${{ env.FLUTTER_VERSION }}
      uses: subosito/flutter-action@v2
      with:
        channel: stable
        flutter-version: ${{ env.FLUTTER_VERSION }}

    - name: Setup Java JDK
      uses: actions/[email protected]
      with:
        distribution: 'temurin'
        java-version: '21'
        #architecture: 'aarch64'

    - name: Setup Android SDK
      uses: android-actions/setup-android@v3

    - name: Flet Build APK
      run: |
        flutter doctor
        flutter config --no-analytics
        flet build apk \
        --include-packages flet_lottie \
        --verbose \
        --build-number=$BUILD_NUMBER \
        --build-version=$BUILD_VERSION \
        --company="$COMPANY_NAME" \
        --org="$ORG_NAME" \
        --product="$PRODUCT" \
        --description="$DESCRIPTION" \
        --project="$PROJECT" \
        --flutter-build-args=--release \
        --flutter-build-args=--analyze-size \
        --flutter-build-args=--target-platform \
        --flutter-build-args=android-$ANDROID_PLATFORM_TARGET \
        --flutter-build-args=--split-per-abi

    - name: Upload APK Artifact
      uses: actions/[email protected]
      with:
        name: apk-build-artifact
        path: build/apk
        if-no-files-found: warn
        overwrite: false

osamalzabidi avatar Sep 25 '24 13:09 osamalzabidi