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

# Upgrading From V3

> Migrate from CometChat Android SDK v3 to v4 with updated setup, APIs, dependencies, and behavior changes.

> [accordion] AI Integration Quick Reference
>
> **Migration Steps:**
>
> 1. Update Maven URL to `https://dl.cloudsmith.io/public/cometchat/cometchat/maven/`
> 2. Update dependency to `com.cometchat:chat-sdk-android:4.2.0` (or latest v4)
> 3. Change all imports from `com.cometchat.pro.*` to `com.cometchat.chat.*`
> 4. Rebuild and test your application
>
> **Key Changes:**
>
> * Package name changed from `com.cometchat.pro` to `com.cometchat.chat`
> * Maven repository URL updated
> * API remains largely compatible with v3
>
> **Full guide:** Follow the [setup](https://www.cometchat.com/docs/sdk/android/v4/setup.md) instructions for detailed v4 setup.

Upgrading from v3.x to v4 is straightforward. The API surface is the same — only the Maven URL, dependency artifact, and import package names changed.

## Maven URL Change

> [tab] Groovy
>
> ```java theme={null}
> allprojects {
>   repositories {
>     maven {
>       url "https://dl.cloudsmith.io/public/cometchat/cometchat/maven/"
>     }
>   }
> }
> ```

## Dependency Change

> [tab] Groovy
>
> ```java theme={null}
> dependencies {
>   implementation 'com.cometchat:chat-sdk-android:4.2.0'
> }
> ```

## Change the Import Class Packages

In v3, the import class package name starts with `com.cometchat.pro.*`. Change it to `com.cometchat.chat.*` everywhere in the project and you are done with the v3 to v4 migration.

***

## Next Steps

> [card] [Setup](https://www.cometchat.com/docs/sdk/android/v4/setup.md)
>
> Review complete v4 setup instructions

> [card] [Send Message](https://www.cometchat.com/docs/sdk/android/v4/send-message.md)
>
> Test messaging functionality after migration

> [card] [Calling Setup](https://www.cometchat.com/docs/sdk/android/calling-setup.md)
>
> Update calling features to v4

> [card] [Real-Time Listeners](https://www.cometchat.com/docs/sdk/android/v4/real-time-listeners.md)
>
> Verify event listeners work correctly


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