Environment Setup
Android NDK
Download from NDK Downloads and set environment variable:bash
Android SDK
Install command-line tools from Android Studio Downloads or viasdkmanager
.
Build llama.cpp for Android
bash
Build nexaml for Android
bash
Configure Android Project
Create or editbindings/android/local.properties
:
properties
Build the AAR
bash
.aar
file will be at app/build/outputs/aar/
Integration
Copy the.aar
into your app’s libs/
folder and update build.gradle
:
groovy