Flutter: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 7: | Zeile 7: | ||
* Download flutter https://flutter.dev/docs/get-started/install/linux#install-flutter-manually | * Download flutter https://flutter.dev/docs/get-started/install/linux#install-flutter-manually | ||
< | <syntaxhighlight lang=bash> | ||
sudo apt install git curl xz-utils zip | sudo apt install git curl xz-utils zip | ||
# als Benutzer coder | # als Benutzer coder | ||
Zeile 17: | Zeile 17: | ||
sudo ln -s /home/coder/dev/flutter/bin/$bin /usr/local/bin | sudo ln -s /home/coder/dev/flutter/bin/$bin /usr/local/bin | ||
done | done | ||
</ | </syntaxhighlight> | ||
* Download https://developer.android.com/studio | * Download https://developer.android.com/studio | ||
< | <syntaxhighlight lang=bash> | ||
cd ~/dev | cd ~/dev | ||
tar xf /home/coder/Downloads/android-studio-ide*.tar.gz | tar xf /home/coder/Downloads/android-studio-ide*.tar.gz | ||
</ | </syntaxhighlight> | ||
* In den Settings: Appearance & Behaviour - System Settings - Android-SDK | * In den Settings: Appearance & Behaviour - System Settings - Android-SDK | ||
** Tools: <code>[x]</code> Android SDK Platform-Tools | ** Tools: <code>[x]</code> Android SDK Platform-Tools | ||
< | <syntaxhighlight lang=bash> | ||
flutter doctor --android-licenses | flutter doctor --android-licenses | ||
flutter config --enable-linux-desktop | flutter config --enable-linux-desktop | ||
Zeile 32: | Zeile 32: | ||
apt install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev | apt install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev | ||
flutter doctor | flutter doctor | ||
</ | </syntaxhighlight> | ||
== Korrekturen == | == Korrekturen == | ||
* 64-k-Referenz-Problem: | * 64-k-Referenz-Problem: | ||
Zeile 45: | Zeile 46: | ||
} | } | ||
</pre> | </pre> | ||
= Release = | |||
<syntaxhighlight lang=bash> | |||
flutter build linux | |||
</syntaxhighlight> |
Version vom 6. August 2022, 05:07 Uhr
Kategorie:Entwicklung
Links
Installation Android-Studio
sudo apt install git curl xz-utils zip
# als Benutzer coder
cd ~
mkdir -p dev
cd dev
tar xf ~/Downloads/flutter_linux_2.0.5-stable.tar.xz
for bin in flutter dart; do
sudo ln -s /home/coder/dev/flutter/bin/$bin /usr/local/bin
done
- Download https://developer.android.com/studio
cd ~/dev
tar xf /home/coder/Downloads/android-studio-ide*.tar.gz
- In den Settings: Appearance & Behaviour - System Settings - Android-SDK
- Tools:
[x]
Android SDK Platform-Tools
- Tools:
flutter doctor --android-licenses
flutter config --enable-linux-desktop
flutter config --android-studio-dir /home/coder/dev/android-studio
apt install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
flutter doctor
Korrekturen
- 64-k-Referenz-Problem:
- android/app/build.gradle:
android { ... defaultConfig { ... mulitDexEnabled true ... } }
Release
flutter build linux