---
description: 'To include the Passio SDK in your project, you’ll need to:'
---

# Importing the Android SDK to a project

1. **Add the SDK dependency using Maven**: Ensure you have the correct repository and dependency in your `build.gradle` file.

In the `build.gradle` file add the PassioSDK dependency

```gradle
dependencies {
    implementation 'ai.passio.passiosdk:nutrition-ai:3.2.1-3'
}
```



Dependencies

```gradle
dependencies {
    // TensorFlow
    implementation 'org.tensorflow:tensorflow-lite:2.8.0'
    implementation 'org.tensorflow:tensorflow-lite-metadata:0.4.0'

    // CameraX
    def camerax_version = "1.3.4"
    implementation "androidx.camera:camera-core:$camerax_version"
    implementation "androidx.camera:camera-camera2:$camerax_version"
    implementation "androidx.camera:camera-lifecycle:$camerax_version"
    implementation "androidx.camera:camera-view:$camerax_version"
    implementation "androidx.camera:camera-extensions:$camerax_version"

    // Barcode and OCR
    implementation 'com.google.android.gms:play-services-mlkit-text-recognition:19.0.0'
    implementation 'com.google.android.gms:play-services-mlkit-barcode-scanning:18.3.0'
}
```



2. **Set up SDK Key**: Obtain your SDK key from Passio’s Developer Portal. Add it to your `BuildConfig` or securely store it as an environment variable in your project.



Check out the full code here.[ FULL CODE](https://github.com/Passiolife/Passio-Android-QuickStart)
