> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runanywhere.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Add the RunAnywhere Kotlin SDK to your Android project

## Gradle

Artifacts come from Maven Central under `io.github.sanchitmonga22`.

```kotlin build.gradle.kts (Module: app) theme={"theme":"css-variables"}
dependencies {
    // Core SDK, required
    implementation("io.github.sanchitmonga22:runanywhere-sdk:0.20.27")

    // LLM and VLM through llama.cpp
    implementation("io.github.sanchitmonga22:runanywhere-llamacpp:0.20.27")

    // STT, TTS, VAD, embeddings through ONNX and Sherpa-ONNX
    implementation("io.github.sanchitmonga22:runanywhere-onnx:0.20.27")

    // Qualcomm Hexagon NPU, arm64-v8a only
    implementation("io.github.sanchitmonga22:runanywhere-qhexrt-android:0.20.19")
}
```

Using a version catalog:

```toml gradle/libs.versions.toml theme={"theme":"css-variables"}
[versions]
runanywhere = "0.20.27"
runanywhereQhexrt = "0.20.19"

[libraries]
runanywhere-sdk = { group = "io.github.sanchitmonga22", name = "runanywhere-sdk", version.ref = "runanywhere" }
runanywhere-llamacpp = { group = "io.github.sanchitmonga22", name = "runanywhere-llamacpp", version.ref = "runanywhere" }
runanywhere-onnx = { group = "io.github.sanchitmonga22", name = "runanywhere-onnx", version.ref = "runanywhere" }
runanywhere-qhexrt = { group = "io.github.sanchitmonga22", name = "runanywhere-qhexrt-android", version.ref = "runanywhereQhexrt" }
```

No NDK, CMake, or native toolchain is needed. Each AAR ships prebuilt native libraries.

## Build configuration

```kotlin build.gradle.kts (Module: app) theme={"theme":"css-variables"}
android {
    compileSdk = 37
    defaultConfig {
        minSdk = 24
        targetSdk = 37
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_17
        targetCompatibility = JavaVersion.VERSION_17
    }
    kotlinOptions {
        jvmTarget = "17"
    }
}
```

## The import that makes it compile

The namespaces are extension properties. This import is not optional:

```kotlin theme={"theme":"css-variables"}
import com.runanywhere.sdk.public.RunAnywhere
import com.runanywhere.sdk.public.api.*
```

Without the second line, `RunAnywhere.llm` is an unresolved reference.

## Module sizes

Sizes are the published `.aar` on Maven Central, measured at 0.20.27 for the first three and
0.20.19 for QHexRT. They are larger than the eventual APK contribution, because each `.aar`
ships native libraries for every supported ABI and the Android build drops the ones your
`abiFilters` exclude.

| Module | Size | ABIs | Features |
| - | - | - | - |
| `runanywhere-sdk` | 101MB | all | Core SDK, model management, events |
| `runanywhere-llamacpp` | 64MB | all | LLM and VLM on GGUF |
| `runanywhere-onnx` | 49MB | all | STT, TTS, VAD |
| `runanywhere-qhexrt-android` | 58MB | arm64-v8a | Qualcomm Hexagon NPU |

Include only the backends you need.

## Permissions

```xml AndroidManifest.xml theme={"theme":"css-variables"}
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
```

`INTERNET` is for model downloads. `RECORD_AUDIO` is only needed if you use speech input.

## Emulators

The NPU backend is arm64 only and is unavailable on x86\_64 emulators. Test inference on a
physical ARM64 device.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.