Open Brayan603 opened 3 months ago
are you following this tutorial?
the latest version is already2.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
# libs.versions.toml
[versions] countryPicker = "2.7.0"
[libraries] country-picker = { group = "com.hbb20", name = "ccp", version.ref = "countryPicker" }
3. Sync the project
4. Add in your gradle module
``` kotlin
// build.gradle.kts (module)
dependencies {
// others dependency
implementation(libs.country.picker) // here
}
dependencies {
}