mumumusuc / termux-flutter

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

Running flutter app in termux(as Linux) not working #22

Closed L4FeeR closed 7 months ago

L4FeeR commented 10 months ago

Hello there, I got some issue with running flutter app on termux vnc, it shows some error, I can't understand. Kindly help me. T ![Uploading Screenshot_2024-01-17-17-58-51-47_84d3000e3f4017145260f7618db1d683.jpg…]() hank you!

mumumusuc commented 10 months ago

image is broken, please update message with flutter run -v

L4FeeR commented 10 months ago

[Uploading log.txt…]()

Here the logs

L4FeeR commented 10 months ago

On Wed, 17 Jan 2024, 18:38 mumumusuc, @.***> wrote:

image is broken, please update message with flutter run -v

— Reply to this email directly, view it on GitHub https://github.com/mumumusuc/termux-flutter/issues/22#issuecomment-1895778527, or unsubscribe https://github.com/notifications/unsubscribe-auth/AV642GXATZZXNCJIZLDDKY3YO7ENHAVCNFSM6AAAAABB6OYUBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJVG43TQNJSG4 . You are receiving this because you authored the thread.Message ID: @.***>

[ +28 ms] executing: uname -m [ +23 ms] Exit code 0 from: uname -m [ ] aarch64 [ +60 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update. [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +61 ms] executing: /data/data/com.termux/files/usr/opt/android-sdk/platform-tools/adb devices -l [ +57 ms] List of devices attached [ +10 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update. [ +1 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ +3 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +114 ms] Skipping pub get: version match. [ +609 ms] Generating /storage/emulated/0/hello_world/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +183 ms] Failed obtaining PRETTY_NAME for Linux: PathNotFoundException: Cannot open file, path = '/usr/lib/os-release' (OS Error: strerror_r failed, errno = 2) [ +134 ms] Initializing file store [ +41 ms] Skipping target: gen_localizations [ +18 ms] gen_dart_plugin_registrant: Starting due to {InvalidatedReasonKind.inputChanged: The following inputs have updated contents: /storage/emulated/0/hello_world/.dart_tool/package_config_subset} [ +169 ms] gen_dart_plugin_registrant: Complete [ +3 ms] Skipping target: _composite [ +4 ms] complete [ +11 ms] Launching lib/main.dart on Linux in debug mode... [ +6 ms] /data/data/com.termux/files/home/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /data/data/com.termux/files/home/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot --sdk-root /data/data/com.termux/files/home/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/3f3e560236539b7e2702f5ac790b2a4691b32d49/ --output-dill /data/data/com.termux/files/usr/tmp/flutter_tools.WBBJFG/flutter_tool.FWOQSB/app.dill --packages /storage/emulated/0/hello_world/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/dd704641fca0f13458e044aee43be5d8.cache.dill.track.dill --verbosity=error --enable-experiment=alternative-invalidation-strategy [ +41 ms] Building Linux application... [ +15 ms] <- compile package:hello_world/main.dart [ +6 ms] executing: [build/linux/arm64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-arm64 /storage/emulated/0/hello_world/linux [ +20 ms] Building Linux application... (completed in 98ms) [ +4 ms] "flutter run" took 13,380ms. [ +13 ms] ensureAnalyticsSent: 0ms [ ] Running 1 shutdown hook [ +6 ms] Shutdown hooks complete [ ] exiting with code 1

mumumusuc commented 10 months ago

It seems no error here, is this the full message? I see your project is located in /storage/emulated/0/hello_world, usually executing isn't allowed there, perhaps you can move your project to Termux's path(e.g. $HOME) and try again.

L4FeeR commented 9 months ago

Android apk and linux compiling is the issue, otherwise web is perfect

mumumusuc commented 9 months ago

Android apk and linux compiling is the issue, otherwise web is perfect

any error message?