PassCodeText icon indicating copy to clipboard operation
PassCodeText copied to clipboard

Unable to use OtpEditText from Gradle Script

Open janakirampalepu opened this issue 1 year ago • 1 comments

Describe the bug

We are unable to use OtpEditText using Gradle Script.

To Reproduce Steps to reproduce the behaviour:

  1. Add library to app module gradle file
  2. //    otp edit text
    
    implementation 'com.github.swapnil1104:OtpEditText:1.0.0'
  3. Click on SyncNow in Android Studio.
  4. See error

Expected behaviour Android app should build without any issues.

Screenshots

[00:37:08]: ▸ Execution failed for task ':app:mergeStagingArtProfile'. [00:37:08]: ▸ > Could not resolve all dependencies for configuration ':app:stagingRuntimeClasspath'. [00:37:08]: ▸ The project declares repositories, effectively ignoring the repositories you have declared in the settings. [00:37:08]: ▸ You can figure out how project repositories are declared by configuring your build to fail on project repositories. [00:37:08]: ▸ See https://docs.gradle.org/7.4.2/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories for details. [00:37:08]: ▸ > Could not find com.github.swapnil1104:OtpEditText:1.0.0. [00:37:08]: ▸ Searched in the following locations: [00:37:08]: ▸ - https://maven.google.com/com/github/swapnil1104/OtpEditText/1.0.0/OtpEditText-1.0.0.pom [00:37:08]: ▸ - https://repo.maven.apache.org/maven2/com/github/swapnil1104/OtpEditText/1.0.0/OtpEditText-1.0.0.pom [00:37:08]: ▸ - https://plugins.gradle.org/m2/com/github/swapnil1104/OtpEditText/1.0.0/OtpEditText-1.0.0.pom [00:37:08]: ▸ - https://repo.sendbird.com/public/maven/com/github/swapnil1104/OtpEditText/1.0.0/OtpEditText-1.0.0.pom [00:37:08]: ▸ - https://jitpack.io/com/github/swapnil1104/OtpEditText/1.0.0/OtpEditText-1.0.0.pom [00:37:08]: ▸ Required by: [00:37:08]: ▸ project :app [00:37:08]: ▸ * Try:

janakirampalepu avatar Jul 13 '24 19:07 janakirampalepu

I got the same issue here

d2luu avatar Sep 25 '24 03:09 d2luu