Flutter: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
 
(4 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


<source bash=lang>
<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
</source>
</syntaxhighlight>


* Download https://developer.android.com/studio
* Download https://developer.android.com/studio
<source bash=lang>
<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
</source>
</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
<source bash=lang>
<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
</source>
</syntaxhighlight>
 
== Korrekturen ==
* 64-k-Referenz-Problem:
* android/app/build.gradle:
<pre>android {
...
  defaultConfig {
  ...
    mulitDexEnabled true
...
  }
}
</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
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
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