I'm on NixOS and have never used Android anything before. It would be nice if this provisioned the necessary android stuff and Just Worked™. Or included instructions in the README to get all that stuff set up.
Running flutter build apk fails for me fails with the following flutter_01.log
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en_GB.UTF-8)
• Flutter version 1.12.13+hotfix.5 at /nix/store/ibphbnn5z5vnhvh90v2qvh69aqq2y1ax-flutter-stable-1.12.13+hotfix.5-unwrapped
• Framework revision 27321ebbad (4 weeks ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6
• Dart version 2.7.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[!] Android Studio (version 3.5)
• Android Studio at /nix/store/qj1v3bxxpx76p4q9d9z50pa18xzkp42w-android-studio-stable-3.5.3.0-unwrapped
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
(Looks like I have android-studio installed somewhere - either via systemPackages or nix-env - but clearly that's not enough)
I'm on NixOS and have never used Android anything before. It would be nice if this provisioned the necessary android stuff and Just Worked™. Or included instructions in the
README
to get all that stuff set up.Running
flutter build apk
fails for me fails with the followingflutter_01.log
Flutter crash report; please file at https://github.com/flutter/flutter/issues.
command
flutter --no-version-check build apk
exception
NoSuchMethodError: NoSuchMethodError: The method 'reinitialize' was called on null. Receiver: null Tried calling: reinitialize()
flutter doctor
(Looks like I have
android-studio
installed somewhere - either viasystemPackages
ornix-env
- but clearly that's not enough)