Flutter: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Links) |
|||
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 3: | Zeile 3: | ||
= Links = | = Links = | ||
* [[Adb]] | * [[Adb]] | ||
* [[Sortator]] | |||
* [[GetX]] | |||
* [[Flutter-Apps]] | |||
* [[Flutter-Bones]] | |||
* [[Flutter-Widgets]] | |||
= Installation Android-Studio = | = Installation Android-Studio = | ||
* 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 23: | ||
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 38: | ||
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 52: | ||
} | } | ||
</pre> | </pre> | ||
= Release = | |||
<syntaxhighlight lang=bash> | |||
flutter build linux | |||
</syntaxhighlight> |
Aktuelle Version vom 25. September 2022, 06:38 Uhr
Kategorie:Entwicklung
Links[Bearbeiten]
Installation Android-Studio[Bearbeiten]
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[Bearbeiten]
- 64-k-Referenz-Problem:
- android/app/build.gradle:
android { ... defaultConfig { ... mulitDexEnabled true ... } }
Release[Bearbeiten]
flutter build linux