-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No file or variants found for asset: app/app.zip error with flet build apk
on Windows
#2332
Comments
The actual error is Could you run |
flet build apk
on Windows
Vietnamese: Tôi đã khắc phục được do phiên bản python tôi dùng là 13.12 tôi đã down xuống 13.11.6 và đã build OK. Làm sao tôi có thể build cho phiển bản andoird 7. 8. 9, 10, 11.... |
You mean Python 3.12 and 3.11.6? |
I downgrade python to 3.11.6 |
log.txt |
What other Python dependencies does your app require, except |
|
@akunzz Give your |
anyio==4.2.0 |
@akunzz By looking at the requirements list you gave, it seems you are using
version you give Try this |
ok let me try, in my project I import include: |
When I remove from services.login import Login and don't use it anymore, the app won't get a black screen, so I suspect it's in the import pyodbc package. even though my requirements.txt file is flet |
@akunzz From my experience, that "unresponsive" screen is caused by some error or warning thingies going on in python code. Check if you can execute this code on the computer or laptop you are coding on without any warning or anything like that. And... hah! I got it!!! 😎 can you look at the last code block you gave??? 😏 Look at that This And, by the way, why implement another class p.s: Why the code in the last block is so badly indented? Edit: Mention, clarify |
OK, guys, the problem is in Architecturally, it would be more right having a backend service running on the server and a mobile app accessing that service via HTTP/sockets. Backend service in its turn uses ODBC to make low-level calls to the database and exposes high-level API to your mobile app. Also, your mobile app cannot contain database connection string details (or any other private/sensitive) as anyone can retrieve that data from the app package. Hope that helps. |
|
Hey @akunzz , please do format your quote reply correctly. It's difficult to tell which one is your reply to another else's quote, because you make all the text, even your own reply into quote. Do remove that ">" brackets at the start of "your reply" lines in quote replies. Sorry if I appear rude. Hope you got it. Thank you |
Thank you, I'm Vietnamese, I'm not afraid of github, now I've determined the cause is pyodbc, so is there any way to create a mobile application that can connect to sql server. Or can you advise me on whether or not I can decompress the client server api? |
I am afraid to answer your comment, because I am not much into database things... |
Like I noted earlier, create a backend service and access it from Flet app (hence device) via HTTP. Backend service could be anything from a simple FastAPI or Flask to Firebase, Supabase (docs), Pocketbase or other *base. |
I have error
The text was updated successfully, but these errors were encountered: