Skip to main content

droidkit 1.0.0 copy "droidkit: ^1.0.0" to clipboard
droidkit: ^1.0.0 copied to clipboard

Set up the Android SDK, a JDK and emulators for Flutter without Android Studio. One command installs, diagnoses and manages your Android toolchain.

example/README.md

droidkit examples #

First-time setup on a new machine #

dart pub global activate droidkit
droidkit setup          # guided: JDK, SDK, licenses, emulator, Flutter config
droidkit start          # boot your emulator
flutter run

Reuse an SDK you already have #

droidkit setup detects ANDROID_HOME, flutter config --android-sdk and the default Android Studio location, and only installs what's missing:

droidkit doctor         # see what's wrong
droidkit doctor --fix   # repair it

Put the SDK on another disk #

droidkit --sdk-root /mnt/big-disk/android setup

CI (GitHub Actions, GitLab, …) #

dart pub global activate droidkit
droidkit --yes setup --no-emulator          # SDK only; --yes accepts licenses
eval "$(droidkit env)"                       # ANDROID_HOME + PATH in this shell step
flutter build apk

Integration tests on an emulator (Linux runners with KVM):

droidkit --yes avd create --image google_atd --name ci
droidkit start ci --headless --wait
flutter test integration_test
droidkit stop --all

Emulators #

droidkit images --api 36                       # what can run on this computer
droidkit avd create --api 35 --image google_apis --device pixel_7
droidkit list                                  # ● = running
droidkit start Pixel_7_API_35 --cold
droidkit start -- -dns-server 8.8.8.8          # extra emulator flags after --
droidkit stop --all

Java #

droidkit jdk list                # every JDK droidkit can find, and which it uses
droidkit jdk install --version 21

Shell environment #

eval "$(droidkit env)"           # bash/zsh, current shell only
droidkit env --shell fish | source
droidkit env --persist           # add to ~/.zshrc / ~/.bashrc / fish conf.d
droidkit env --unpersist         # remove it again
1
likes
160
points
91
downloads

Documentation

Documentation
API reference

Publisher

verified publishersangamadhikari.com

Weekly Downloads

Set up the Android SDK, a JDK and emulators for Flutter without Android Studio. One command installs, diagnoses and manages your Android toolchain.

Repository (GitHub)
View/report issues

Topics

#android #flutter #emulator #sdk #cli

License

MIT (license)

Dependencies

archive, args, cli_completion, crypto, file, mason_logger, meta, path, pub_semver, pub_updater, xml

More

Packages that depend on droidkit