GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Android Installation

System requirements

To install and run NuxUI, your development environment must meet these minimum requirements:

  1. Golang 1.8+

Download and install Golang: golang installation instructions

  1. Android NDK

Download Android Studio Download Android NDK

Set Environment
ANDROID_HOME: /your/android/sdk/home
ANDROID_NDK_HOME: /your/android/ndk/home

Build Android Application

Install build tool

go install

Build for Android

# build all architecture
nux build -target=android .

# only build for arm
nux build -target=android/arm .

# build for arm and optimiz size
nux build -target=android/arm -ldflags="-s -w" . 

Install app to devices

adb install -r app.apk


nux build -target=android/arm -ldflags="-s -w" . 
adb install -r counter.apk