Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

bug: running flet build apk without Android SDK installed fails to properly install Android SDK

Đang mở
#6,522 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
android, python
Lĩnh vực
build-system, cli, mobile-dev

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện flet build apk -v trên Windows 11 khi chưa có Android SDK và kiểm tra quy trình cài đặt Android SDK của lệnh build, bao gồm cả hành vi của sdkmanager.bat sau đó. Được xem là hoàn tất khi các giấy phép bắt buộc có thể được chấp nhận trong quá trình cài đặt, hoặc lệnh cung cấp và ghi lại tùy chọn tự động chấp nhận, mà không báo SDK đã được cài đặt khi quá trình thiết lập thất bại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Duplicate Check
Describe the bug

Running flet build apk -v on Windows without Android SDK fails to install the Android SDK, because the installation process does not allow typing y to accept the necessary licenses.

In addition, the process reports "Android SDK installed" which is quite misleading.

Code sample

flet build apk -v

To reproduce

Run the build command on a Windows computer without Android SDK installed

Expected behavior

It would be nice, if either:

  • the process does by itself gives the necessary permissions
  • there is an option, like flet build apk -y that automatically accepts the licenses during the installation, and that this switch is documented in the "Packaging app for Android" documentation
  • the installation process does allow for manually accepting the licenses
Screenshots / Videos
Image Image
Operating System

Windows

Operating system details

11

Flet version

0.85

Regression

I'm not sure / I don't know

Suggestions

No response

Logs
Logs
[Paste your logs here]
Additional details

A part of the Android APK is installed, which allowed me to run the sdkmanager.bat to accept the licenses afterward, which finally solved this issue for me.

Ngôn ngữ chính
Python
Star
17.1k
Fork
708
Merge trung bình
1 ngày 17 giờ
Pull request đã merge (30 ngày)
46

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flet-dev/flet

Tất cả issue của flet-dev/flet

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.