Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
I have a project using 0.27.6. I successfully run using command "flet run --android", and the app does well on android. But when I use "flet build apk" to build an apk file and install on the phone, when I run it, the app crashed:
Traceback (most recent call last):
File "", line 95, in
File "", line 229, in run_module
File "", line 88, in _run_code
File "/data/user/0/com.mycompany.alldetail/files/flet/app/main.py", line 3, in
from app.app import App, AppConfig
File "/data/user/0/com.mycompany.alldetail/files/flet/app/app/app.py", line 5, in
from .config.config import AppConfig
File "/data/user/0/com.mycompany.alldetail/files/flet/app/app/config/config.py", line 5, in
from pydantic import BaseModel, Field
ModuleNotFoundError: No module named 'pydantic'
Should I do some extra config to include pydantic?
Code sample
Code
[Paste your code here]
To reproduce
flet build apk
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
macOS
Operating system details
android
Flet version
0.27.6
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
No response