> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-audit-content-webhooks.mintlify.site/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 title="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](/sdk/android/setup) instructions for detailed v4 setup.
</Accordion>

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

<Tabs>
  <Tab title="Groovy">
    ```java theme={null}
    allprojects {
      repositories {
        maven {
          url "https://dl.cloudsmith.io/public/cometchat/cometchat/maven/"
        }
      }
    }
    ```
  </Tab>
</Tabs>

## Dependency Change

<Tabs>
  <Tab title="Groovy">
    ```java theme={null}
    dependencies {
      implementation 'com.cometchat:chat-sdk-android:4.2.0'
    }
    ```
  </Tab>
</Tabs>

## 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

<CardGroup cols={2}>
  <Card title="Setup" icon="gear" href="/sdk/android/setup">
    Review complete v4 setup instructions
  </Card>

  <Card title="Send Message" icon="paper-plane" href="/sdk/android/send-message">
    Test messaging functionality after migration
  </Card>

  <Card title="Calling Setup" icon="phone" href="/sdk/android/calling-setup">
    Update calling features to v4
  </Card>

  <Card title="Real-Time Listeners" icon="bell" href="/sdk/android/real-time-listeners">
    Verify event listeners work correctly
  </Card>
</CardGroup>
