Skip to content

PlayXDead/nix-flake-flutter-android-dev-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This flake provides a development environment for building and testing Flutter Android projects. It includes the necessary tools, such as Flutter, CMake, Ninja, and the Android SDK, to create, build, and run Android apps. Getting Started

  • Create a new directory: Create a new directory for your project
  • Clone this repository: Clone this repository (or download the flake.nix file) and place the "flake.nix" in your project directory
  • Run nix develop: Navigate to your project directory with the flake.nix. Run nix develop to enter the development shell

Features

Flutter SDK for building Android apps CMake and Ninja build systems for native code integration Android SDK for creating, testing, and running Android apps Kotlin and Gradle for building and managing Android projects NDK (Native Development Kit) support for adding native code to your project

Troubleshooting

Wayland Compatibility: Ensure XWayland is enabled on host wayland environments for emulator funtionality. Verify the NDK version: Check that the ndkVersion variable in flake.nix matches the available versions in your Nixpkgs channel. Check the architecture: Ensure that the system = "x86_64-linux" line is correct for your system architecture. Force Environment Rebuld: remove ".flutter_env_ready" and the .android folder. After performing nix develop, the environment should be re-established.

Planned Future Improvements

  • Plans to reintroduce full version pinning for gradle , kotlin, ndk, sdk agp etc.

License

This flake is licensed under the MIT License .

About

Nix Flake for a Flutter + Android dev environment with an included emulator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages