CountryCodePickerProject icon indicating copy to clipboard operation
CountryCodePickerProject copied to clipboard

I am getting an error just after pasting implementation 'com.hbb20:ccp:2.5.0'

Open Brayan603 opened this issue 1 year ago • 4 comments

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'

}

Brayan603 avatar Jun 07 '24 19:06 Brayan603

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.

Elite230 avatar Jun 14 '24 18:06 Elite230

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")

Elite230 avatar Jun 14 '24 19:06 Elite230

implementation("com.github.hbb20:CountryCodePickerProject:2.7.0") not working country code picker is not showing in option

guptaditya123 avatar Jun 24 '24 19:06 guptaditya123

If youre using gradle version catalogs

  1. Add
# libs.versions.toml

[versions]
countryPicker = "2.7.0"

[libraries]
country-picker = { group = "com.hbb20", name = "ccp", version.ref = "countryPicker" }
  1. Sync the project
  2. Add in your gradle module
// build.gradle.kts (module)

dependencies {
// others dependency


implementation(libs.country.picker) // here
}
  1. Sync the project again

waffiqaziz avatar Sep 25 '24 07:09 waffiqaziz