Description
Duplicate Check
- I have searched the opened issues and there are no duplicates
Describe the bug
The bug is caused by a missing or incorrectly configured deep_linking attribute in the Flet project build process. Specifically, the build template you're using (flet-build-template) is trying to access a deep_linking configuration, but the attribute is either absent or improperly defined in the context of the project configuration.
The error occurs during the generation of the AndroidManifest.xml file, where deep linking permissions or configurations are required. The build system encounters an issue because it expects a deep_linking object in the context but can't find it, resulting in the following error:
'dict object' has no attribute 'deep_linking'
Code sample
Code
import flet as ft
def main(page: ft.Page):
page.add(ft.SafeArea(ft.Text("Hello, Flet!")))
ft.app(main)
To reproduce
To reproduce the bug, follow these steps:
Prerequisites:
You need a system with latest pre release Flet installed.
Ensure you are using the Flet build template from flet-dev/flet-build-template.
You need to have Flutter, Android SDK, and Cookiecutter installed on your system.
Expected behavior
No response
Screenshots / Videos
Captures
[Upload media here]
Operating System
Windows
Operating system details
Windows 10
Flet version
0.25.0.dev3519
Regression
No, it isn't
Suggestions
No response
Logs
Logs
PS C:\Users\Muddassir Farooq\Desktop\Bonds> flet build apk
[09:51:35] Unable to create file 'android\app\src\main\AndroidManifest.xml'. Error message: 'dict object' has no attribute 'deep_linking'. Context: OrderedDict({'cookiecutter': OrderedDict({'out_dir': 'flutter', 'python_module_name': 'main', 'project_name': 'bonds', 'project_name_slug': '', 'project_description': '', 'product_name': 'bonds', 'org_name': 'com.flet', 'company_name': 'Your Company', 'copyright': 'Copyright (c) 2023 Your Company', 'flutter': {'dependencies': []}, 'sep': '\\', 'kotlin_dir': 'com\\flet\\bonds\\', 'hide_loading_animation': True, 'team_id': '', 'base_url': '/',
'route_url_strategy': 'path', 'web_renderer': 'canvaskit', 'use_color_emoji': 'false', 'split_per_abi': False, 'options': {'info_plist': {}, 'macos_entitlements': {'com.apple.security.app-sandbox':
False, 'com.apple.security.cs.allow-jit': True, 'com.apple.security.network.client': True, 'com.apple.security.network.server': True}, 'android_permissions': {'android.permission.INTERNET': True},
'android_features': {'android.software.leanback': False, 'android.hardware.touchscreen': False}, 'deep_linking_url': None, 'android_signing': False}, '_template': 'gh:flet-dev/flet-build-template',
'_output_dir': 'C:\\Users\\Muddassir Farooq\\Desktop\\Bonds\\build', '_repo_dir': 'C:\\Users\\Muddassir Farooq\\.cookiecutters\\flet-build-template', '_checkout': '0.25.0'}), '_cookiecutter':
{'out_dir': 'flutter', 'python_module_name': 'main', 'project_name': 'bonds', 'project_name_slug': '', 'project_description': '', 'product_name': 'bonds', 'org_name': 'com.flet', 'company_name': 'Your Company', 'copyright': 'Copyright (c) 2023 Your Company', 'flutter': {'dependencies': []}, 'sep': '\\', 'kotlin_dir': "{{ cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep
}}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}", 'hide_loading_animation': True, 'team_id': '', 'base_url': '/', 'route_url_strategy': 'path', 'web_renderer': 'canvaskit', 'use_color_emoji':
'false', 'split_per_abi': False, 'options': {'info_plist': {}, 'macos_entitlements': {'com.apple.security.app-sandbox': False, 'com.apple.security.cs.allow-jit': True,
'com.apple.security.network.client': True, 'com.apple.security.network.server': True}, 'android_permissions': {'android.permission.INTERNET': True}, 'android_features': {'android.software.leanback':
False, 'android.hardware.touchscreen': False}, 'deep_linking_url': None, 'android_signing': False}}})
[09:51:40] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [Version 10.0.19045.5011], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.10.0)
[√] Android Studio (version 2023.2)
[√] VS Code (version 1.94.2)
[√] Connected device (3 available)
[√] Network resources
• No issues found!
Additional details
No response