Closed lijinshanmx closed 1 year ago
Why close the issue? :) Have you got any success with running Flet on Android? What was your process?
Yes, I run it successfully, my idea is to write python code on the phone, and then run it on the phone. Now it is running successfully on android9, but on android12 it prompts me that I do not have permission to run fletd, although I added chmod+x permission to it
I cross-compiled fletd and reported an error because the content folder is missing, and it cannot be empty. Just place an empty file in it. Then compile the executable file of fletd-arm64-v8a,Then put fletd under cache/tmp/ and set runnable permissions.But it was successful on lower versions of Android, and I haven't found the cause of the problem in higher versions.
What program is on the left screenshot?
https://pub.dev/packages/chaquopy ,I use this pub package to run python programs on the flutter side.
I think you've got the full idea of โโwhat I'm thinking now๐๐
Ah, nice! It's getting together in my head now :) So, there is a Flutter widget for using Chaquopy SDK! Will take a look - it will help me to figureout the best way to package Flet apps for mobile. Thank you!
Yes, completely native, no network required. Just run fletd locally. But the current problem is: there is no permission to run fletd on android12. Adding chmod+x doesn't work either. I have time to continue researching this issue. Finally, thanks again for the flet library.๐๐
So, how did you cross-compiled Fletd for Android? I'm wondering why linux-arm64.tar.gz from here didn't work?
Interesting though that flet-linux-arm64.tar.gz Flutter client worked, right? :)
I execute it on android, Chaquopy prompts: Exec format error. So, it should be that the executable file format is not correct. I cross compile as follows use android ndk version 21:
env:
- CGO_ENABLED=0 CC=/Users/xxxxx/Library/Android/sdk/ndk/21.1.6352462/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android29-clang
goos:
- android
goarch:
- arm64
flet-linux-arm64.tar.gz not working.
Of course, goos=android
!
So, Flet app on your phone is opening in the browser?
No, I am in the #211 you just submitted, this client can run directly, just specify the port. Both remain the same. They communicate via websockets you wrote [fletd].
Smart! ๐ Didn't expect someone to notice that FletApp was moved into a separate Flutter package!
I've been following fletd for two weeks because I just found out about it too. Your idea of โโstarting is very clever, I've been following your commits and plans lately, haha๐๏ผthat's great!๐
very good library.๐