> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/android/get-started/faq/troubleshooting-integration.md).

# Common Apryse Android integration issues

World's #1 PDF SDK Library for Web, Mobile, Server, Desktop

## Unable to merge dex

If you are encountering the following error message:

{% tabs %}
{% tab title="Shell" %}
{% code lineNumbers="true" %}

```sh
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
```

{% endcode %}
{% endtab %}
{% endtabs %}

Please follow the Android guides for [configuring multidex support](https://developer.android.com/studio/build/multidex.html)

Remember to always sync the project whenever any gradle files change:

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-26c8ac157ee8026bb8df98d898218537053937e7%2F5f1ac398fe3df6691fb6f4f54f44ab0a00dcd160-422x109.png?alt=media)

## Gradle project refresh failed

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-870ab3ba98c86853f1b2271355350809022e0198%2Fd59ac785fbbc3fd7a89a85d7acf3b603bddb7fca-561x148.png?alt=media)

Click on `Install Build Tool and sync project`.

Make sure that you are always up-to-date with respect to Android SDK updates:

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-5ce916d6df0d1475cb70368e03f75364500b0105%2F26da2eb68088f13b339f51bda067e50b2623d44f-622x493.png?alt=media)

## Instant Run requires ADB integration to be enabled

![](https://226546913-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0QItsdFBmuuL9ezHimHy%2Fuploads%2Fgit-blob-fa8372ef836c5d9206b85b4417e408b8bee1fd16%2F7c75f75425751c591c7a112137fd8e07b71561b8-590x162.png?alt=media)

Go to the top toolbar in Android Studio and click Tools > Android > Enable ADB integration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/android/get-started/faq/troubleshooting-integration.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
