Skip to content

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

@MarkusPiotrowski

Description

@MarkusPiotrowski

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions