nuxui
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 https://developer.android.com/studio Download Android NDK https://developer.android.com/ndk/downloads

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

Build Android Application

Install build tool

go install nuxui.org/nuxui/cmd/nux@latest

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

Example

cd github.com/nuxui/samples/counter
nux build -target=android/arm -ldflags="-s -w" . 
adb install -r counter.apk

Preview