mumumusuc / termux-flutter

Run Flutter on Termux !
GNU General Public License v3.0
74 stars 10 forks source link

run I get an error #33

Open ly132806 opened 2 months ago

ly132806 commented 2 months ago

Screenshot_20240910_065301_Termux I get an error, what should I do

mumumusuc commented 2 months ago

android14 device?

ly132806 commented 2 months ago

is android13

mumumusuc commented 2 months ago

Does flutter doctor --android-licenses work?

ly132806 commented 2 months ago

This error occurs after uninstalling flutter and reinstalling and running flutter doctor --android-licenses

Screenshot_20240910_164352_Termux

mumumusuc commented 2 months ago

This error occurs after uninstalling flutter and reinstalling and running flutter doctor --android-licenses

Screenshot_20240910_164352_Termux

  1. If you wanna build an apk for Android, install the android-sdk, and then run flutter run or flutter build apk --debug.
  2. If you wanna run flutter with termux-x11, use flutter run -d linux.
ly132806 commented 2 months ago

Uninstall termux, reinstall termux, flutter and android-sdk, run flutter build apk --debug, and an error occurs

~/flutterdemo/wechat_demo $ flutter build apk --debug
Running Gradle task 'assembleDebug'...               Checking the license for package Android SDK Platform 34 in /data/data/com.termux/files/usr/opt/android-sdk/licenses
Running Gradle task 'assembleDebug'...               License for package Android SDK Platform 34 accepted.
Running Gradle task 'assembleDebug'...               Preparing "Install Android SDK Platform 34 (revision: 3)".
Running Gradle task 'assembleDebug'...               "Install Android SDK Platform 34 (revision: 3)" ready.
Running Gradle task 'assembleDebug'...               Installing Android SDK Platform 34 in /data/data/com.termux/files/usr/opt/android-sdk/platforms/android-34
Running Gradle task 'assembleDebug'...               "Install Android SDK Platform 34 (revision: 3)" complete.
Running Gradle task 'assembleDebug'...               "Install Android SDK Platform 34 (revision: 3)" finished.
Running Gradle task 'assembleDebug'...               Target debug_android_application failed: ProcessException: strerror_r failed
Running Gradle task 'assembleDebug'...                 Command: /data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc --sksl --runtime-stage-gles --runtime-stage-vulkan --iplr --sl=/data/data/com.termux/files/home/flutterdemo/wechat_demo/build/app/intermediates/flutter/debug/flutter_assets/shaders/ink_sparkle.frag --spirv=/data/data/com.termux/files/home/flutterdemo/wechat_demo/build/app/intermediates/flutter/debug/flutter_assets/shaders/ink_sparkle.frag.spirv --input=/data/data/com.termux/files/usr/opt/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag --input-type=frag --include=/data/data/com.termux/files/usr/opt/flutter/packages/flutter/lib/src/material/shaders --include=/data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/shader_lib
Running Gradle task 'assembleDebug'...               
Running Gradle task 'assembleDebug'...               
Running Gradle task 'assembleDebug'...               FAILURE: Build failed with an exception.
Running Gradle task 'assembleDebug'...               
Running Gradle task 'assembleDebug'...               * What went wrong:
Running Gradle task 'assembleDebug'...               Execution failed for task ':app:compileFlutterBuildDebug'.
Running Gradle task 'assembleDebug'...               > Process 'command '/data/data/com.termux/files/usr/opt/flutter/bin/flutter'' finished with non-zero exit value 1
Running Gradle task 'assembleDebug'...               
Running Gradle task 'assembleDebug'...               * Try:
Running Gradle task 'assembleDebug'...               > Run with --stacktrace option to get the stack trace.
Running Gradle task 'assembleDebug'...               > Run with --info or --debug option to get more log output.
Running Gradle task 'assembleDebug'...               > Run with --scan to get full insights.
Running Gradle task 'assembleDebug'...               
Running Gradle task 'assembleDebug'...               * Get more help at https://help.gradle.org
Running Gradle task 'assembleDebug'...               
Running Gradle task 'assembleDebug'...               BUILD FAILED in 4m 55s
Running Gradle task 'assembleDebug'...                            296.5s
Gradle task assembleDebug failed with exit code 1
mumumusuc commented 2 months ago

What's the output of this command?

/data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc --sksl --runtime-stage-gles --runtime-stage-vulkan --iplr --sl=/data/data/com.termux/files/home/flutterdemo/wechat_demo/build/app/intermediates/flutter/debug/flutter_assets/shaders/ink_sparkle.frag --spirv=/data/data/com.termux/files/home/flutterdemo/wechat_demo/build/app/intermediates/flutter/debug/flutter_assets/shaders/ink_sparkle.frag.spirv --input=/data/data/com.termux/files/usr/opt/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag --input-type=frag --include=/data/data/com.termux/files/usr/opt/flutter/packages/flutter/lib/src/material/shaders --include=/data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/shader_lib
ly132806 commented 2 months ago
~/flutterdemo/wechat_demo $ /data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc --sksl --runtime-stage-gles --runtime-stage-vulkan --iplr --sl=/data/data/com.termux/files/home/flutterdemo/wechat_demo/build/app/intermediates/flutter/debug/flutter_assets/shaders/ink_sparkle.frag --spirv=/data/data/com.termux/files/home/flutterdemo/wechat_demo/build/app/intermediates/flutter/debug/flutter_assets/shaders/ink_sparkle.frag.spirv --input=/data/data/com.termux/files/usr/opt/flutter/packages/flutter/lib/src/material/shaders/ink_sparkle.frag --input-type=frag --include=/data/data/com.termux/files/usr/opt/flutter/packages/flutter/lib/src/material/shaders --include=/data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/shader_lib
bash: /data/data/com.termux/files/usr/opt/flutter/bin/cache/artifacts/engine/linux-arm64/impellerc: cannot execute: required file not found
ly132806 commented 2 months ago

Back to Flutter 3.19.0 is running fine, not compatible with Flutter 3.24.1