Country code picker dependency is not resolving

The dependency for country code picker is not resolving and I’m getting this error.

Execution failed for task ‘:app:checkDebugAarMetadata’.

Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Could not find com.hbb20:ccp:2.5.2.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/hbb20/ccp/2.5.2/ccp-2.5.2.pom
- https://repo.maven.apache.org/maven2/com/hbb20/ccp/2.5.2/ccp-2.5.2.pom
Required by:
project :app

Possible solution:

@Apoorv4123 Try using

	allprojects {
		repositories {
			...
			mavenCentral()

		}
	}

or maven { url 'https://jitpack.io' }

Actually the latest version is 2.5.1
According to https://github.com/hbb20/CountryCodePickerProject#how-to-add-to-your-project

Try using 2.5.1 else use the jitpack or mavenCentral

Thanks
Using version 2.5.1 worked.

Thanks for the update.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.