---
title: "Using the license key in other languages"
canonical_url: "https://www.nutrient.io/guides/android/license-issues/using-the-license-key-in-other-languages/"
md_url: "https://www.nutrient.io/guides/android/license-issues/using-the-license-key-in-other-languages.md"
last_updated: "2026-05-15T19:10:04.920Z"
description: "Solutions for common issues and errors in Nutrient Android SDK with debugging tips and workarounds."
---

Before using Nutrient Android SDK in any of the supported cross-platform frameworks (e.g. Flutter, React Native, Cordova/Ionic, or Xamarin), the SDK has to be initialized using the appropriate Nutrient Android SDK license key. This article explains the required license setup and initialization steps for each cross-platform framework. If you need to integrate the license into an app that’s written in Kotlin or Java, see our [license integration](https://www.nutrient.io/sdk/android/getting-started.md) guide.

To use Nutrient inside your cross-platform project, you first need to obtain a valid license key. The license key can be obtained in the [Nutrient Portal](https://my.nutrient.io) (for existing customers) or by following the link inside the [Nutrient demo email](https://www.nutrient.io/guides/android/demo.md).

---

## Obtaining the license key

The license code you get from the customer center or the demo email is similar to this:

### KOTLIN

```kotlin

const val PSPDFKIT_LICENSE_KEY = "PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y"

```

### JAVA

```java

private static final String PSPDFKIT_LICENSE_KEY = "PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y";

```

## Using the license key in apache Cordova and Ionic

Our [Apache Cordova](https://github.com/PSPDFKit/PSPDFKit-Cordova) SDK requires you to add the license key to the `AndroidManifest.xml` of your Android Cordova app. This file is usually located at `<your_project>/platforms/android/AndroidManifest.xml`, as shown in the example below:

```xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.pspdfkit.example">

    <application>

        <meta-data
            android:name="nutrient_license_key"
            android:value="PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y"/>

    </application>

</manifest>

```

## Using the license key in Flutter

To set the license key in [Flutter](https://github.com/PSPDFKit/pspdfkit-flutter), use this:

```dart

// To set the license key for both platforms, use:
await Pspdfkit.setLicenseKeys("YOUR_FLUTTER_ANDROID_LICENSE_KEY_GOES_HERE", "YOUR_FLUTTER_IOS_LICENSE_KEY_GOES_HERE");

```

## Using the license key in React Native

To set the license key in [React Native](https://github.com/PSPDFKit/react-native), use this:

```js

// To set the license key for both platforms, use:
Nutrient.setLicenseKeys("YOUR_REACT_NATIVE_ANDROID_LICENSE_KEY_GOES_HERE", "YOUR_REACT_NATIVE_IOS_LICENSE_KEY_GOES_HERE");

```

## Using the license key in Xamarin

In [Xamarin](https://github.com/PSPDFKit/Xamarin-Android), you need to set the license key inside your `MainActivity.cs` in between the `using` statements and the `namespace` declaration, using an `assembly` attribute:

```csharp

using System;
using PSPDFKit;

[assembly: MetaData (
	name: "nutrient_license_key",
	Value = "PQmgAnmE1GsqwrY8nV2Gaq4g9wcg8XDF3p9ymbsw1npPclRg9Wsd3FQZXF2s4OT9BeiKk6g9sutdcy9032sgf8afm432wkq50SrGfi71CDuJCoVdIbF6Zj+BIYeaz38ghlFfydfMOFlfd4H5t0y"
)]

namespace YourAwesomeApp {... }

```
---

## Related pages

- [Easily add a license key to your Android app](/guides/android/troubleshooting/license/add-license-key.md)
- [What Is A Bundle Id](/guides/android/faq/what-is-a-bundle-id.md)
- [Updates Have Expired](/guides/android/license-issues/updates-have-expired.md)
- [Getting The Currently Used Version](/guides/android/license-issues/getting-the-currently-used-version.md)

