Golang Fyne: How to compile *apk for Android | Golang Fyne tutorial
In this short Golang Fyne tutorial I’ll show you how to compile or build a Fyne application to an apk file for Android phone.
As an example of a Golang project I used the basic Hello World example from the Fyne official documentation.
The purpose of this Golang Fyne tutorial is just to show how to compile a Fyne app to an apk file to install it on an Android phone.
Follow me @:
Telegram: https://t.me/red_eyed_coder_club
Twitter: https://twitter.com/CoderEyed
Facebook: https://fb.me/redeyedcoderclub
Timecodes:
00:00 – beginning
01:09 – installing Android SDK and Android NDK
03:42 – installing Golang
06:07 – installing Golang Fyne framework
08:26 – installing Fyne cli tool
09:29 – adding go/bin directory to the PATH variable
10:35 – creating an icon for the Fyne app
11:26 – compiling Fyne app to *.apk
To install Android SDK on Ubuntu-base distros (I use Linux Mint):
sudo apt install android-sdk
Links:
Android NDK:
https://developer.android.com/ndk
To get the 21 version of Android NDK:
https://github.com/android/ndk/wiki/Unsupported-Downloads
Golang installation:
https://go.dev/doc/install
Golang Fyne framework:
https://developer.fyne.io/started/
Golang Fyne: How to compile Fyne app to *apk for Android | Golang Fyne tutorial
https://youtu.be/4S-AQlV1pcw
✴️✴️✴️ Other Golang tutorials ✴️✴️✴️
Golang Tutorial: How to scrape Ebay with Golang and Goquery: https://youtu.be/mS74M-rnc90
Golang tutorial: How to scrape websites with Golang & Goquery: https://youtu.be/4VIoT50mzzo
Golang imports tutorial: how to import Golang local package: https://youtu.be/Nv8J_Ruc280
To build an apk file using Golang Fyne you have to install appropriate tools. Fyne is a nice framework, but it’s too early to build true Android app with Fyne.
#golang #fyne #redeyedcoderclub
Comments are closed.