CountryCodePickerProject
CountryCodePickerProject copied to clipboard
I am getting an error just after pasting implementation 'com.hbb20:ccp:2.5.0'
dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
implementation(libs.navigation.fragment)
implementation(libs.navigation.ui)
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
implementation 'com.hbb20:ccp:2.5.0'
}
are you following this tutorial?
the latest version is already 2.7.0
Your gradle probably ends in .kts, it is a cotlin file.
the implementation you pasted in is in java.
I am also trying to find a solution.
Here's what I found works:
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
implementation("com.github.hbb20:CountryCodePickerProject:2.7.0")
copy the last line
implementation("com.github.hbb20:CountryCodePickerProject:2.7.0")
implementation("com.github.hbb20:CountryCodePickerProject:2.7.0") not working country code picker is not showing in option
If youre using gradle version catalogs
- Add
# libs.versions.toml
[versions]
countryPicker = "2.7.0"
[libraries]
country-picker = { group = "com.hbb20", name = "ccp", version.ref = "countryPicker" }
- Sync the project
- Add in your gradle module
// build.gradle.kts (module)
dependencies {
// others dependency
implementation(libs.country.picker) // here
}
- Sync the project again