Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Brayan603 opened this issue Jun 7, 2024 · 4 comments

Comments

@Brayan603
Copy link

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'

}

@Elite230
Copy link

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
Copy link

Elite230 commented Jun 14, 2024

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

@guptaditya123
Copy link

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

@waffiqaziz
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants