WheelPicker icon indicating copy to clipboard operation
WheelPicker copied to clipboard

Could not find cn.aigestudio.wheelpicker:WheelPicker:1.0.3.

Open SandeshVakale opened this issue 4 years ago • 11 comments

Hello,

I am trying to use wheel Picker in my react native app. I am using a react-native-wheel-picker library that uses WheelPicker from AigeStudio for android.

But I am getting the following error.

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find cn.aigestudio.wheelpicker:WheelPicker:1.0.3.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/cn/aigestudio/wheelpicker/WheelPicker/1.0.3/WheelPicker-1.0.3.pom
       - file:/Users/sandeshvakale/.m2/repository/cn/aigestudio/wheelpicker/WheelPicker/1.0.3/WheelPicker-1.0.3.pom
       - file:/Users/sandeshvakale/Desktop/Projects/Maaf/node_modules/react-native/android/cn/aigestudio/wheelpicker/WheelPicker/1.0.3/WheelPicker-1.0.3.pom
       - file:/Users/sandeshvakale/Desktop/Projects/Maaf/node_modules/jsc-android/dist/cn/aigestudio/wheelpicker/WheelPicker/1.0.3/WheelPicker-1.0.3.pom
       - https://dl.google.com/dl/android/maven2/cn/aigestudio/wheelpicker/WheelPicker/1.0.3/WheelPicker-1.0.3.pom
       - https://www.jitpack.io/cn/aigestudio/wheelpicker/WheelPicker/1.0.3/WheelPicker-1.0.3.pom
     Required by:
         project :app > project :gregfrench_react-native-wheel-picker

I also forced the library to use the latest 1.1.3 version by making changes in the library Gradle file.

But I get the same error again.

Is anyone facing the same issue?

Thanks in advance for your help.

SandeshVakale avatar Oct 14 '21 08:10 SandeshVakale

@SandeshVakale ,

Have you got any solution. I am facing the same in react-native 0.66.2.

Thanks

akhilsanker avatar Nov 09 '21 10:11 akhilsanker

Nope, I changed design for android and used picker from rn community. But you can also use picker from react native ui lib by wix. They have one nice picker.

SandeshVakale avatar Nov 09 '21 11:11 SandeshVakale

I started getting this same error, and like many other times you start to wonder WTH is going on, and forget simple things. In my case specifically, I removed the jcenter() repo, so maybe that helps whoever else gets this error. Adding it back solved the issue.

Better start looking into a different option if it's on that repo only...

luiscesjr avatar Dec 02 '21 19:12 luiscesjr

Add this to your build.graddle file and it will work:

allprojects {
  repositories {
    // ...
    jcenter() {
        content {
            includeModule("cn.aigestudio.wheelpicker", "WheelPicker")
        }
    }

zabojad avatar Jan 26 '22 12:01 zabojad

@zabojad Thanks a lot, its work!

batuhanbag avatar Jan 31 '22 13:01 batuhanbag

@zabojad This solves above issue but JCenter shutting down, so trying to remove all jcenter dependancy from project. Doesn't it affect that?

Add this to your build.graddle file and it will work:

allprojects {
  repositories {
    // ...
    jcenter() {
        content {
            includeModule("cn.aigestudio.wheelpicker", "WheelPicker")
        }
    }

swatiredhu17 avatar Feb 02 '22 13:02 swatiredhu17

@swatiredhu17 the snippet I've shared allows to use jcenter only for the wheelpicker.

zabojad avatar Feb 03 '22 16:02 zabojad

so it actually doesn't solve anything if JCenter is down. the only viable option I see in the long term is to host it on another maven repo, maybe Jitpack.io. you guys need to Draft a New Release here on Github with a version tag, and then it will get picked up and built by Jitpack here: https://jitpack.io/#AigeStudio/WheelPicker

raphael-dario avatar Oct 31 '22 18:10 raphael-dario

so it actually doesn't solve anything if JCenter is down. the only viable option I see in the long term is to host it on another maven repo, maybe Jitpack.io. you guys need to Draft a New Release here on Github with a version tag, and then it will get picked up and built by Jitpack here: https://jitpack.io/#AigeStudio/WheelPicker

yeah I think so, this is just temporary solution

batuhanbag avatar Oct 31 '22 19:10 batuhanbag