CanHub / Android-Image-Cropper

Image Cropping Library for Android, optimised for Camera / Gallery.
Apache License 2.0
1.21k stars 249 forks source link

Implementation Error #146

Closed Rizza-Rabe closed 3 years ago

Rizza-Rabe commented 3 years ago

Android Studio Throws error: "Fail to resolve: com.github.CanHub:Android-Image-Cropper:3.1.3" 16244455235292139217008406975166

Canato commented 3 years ago

Hello @Rizza-Rabe welcome to the library.

Did you have maven - jitpack add to your project? using library guide

Tip: Next time you can always add a printscreen or just copy/paste the code =)

Rizza-Rabe commented 3 years ago

Yes i have jitpack.io like this repo{ mavenCentral() maven {url https://jitpack.io} like this. }

Canato commented 3 years ago

which gradle file is each one of this code?

Rizza-Rabe commented 3 years ago

Tried the outside Gradle. not work. And in inside gradle not work either.

Canato commented 3 years ago

ok, need to be in the gradle file. But your project should have at least two gradle files or more.

Which is the package/path to the gradle files you are using?

jitpack need to be in root gradle file and the library implementation need to be on the module gradle file

denchic45 commented 3 years ago

I have the same problem image image

Canato commented 3 years ago

Hey @denchic45 same questions, which gradle files are you putting this code?

There is this warning about offline, probably is nothing

denchic45 commented 3 years ago

I put this code in a Gradle project image

I put the dependency in the gradle of the app module image

After synchronizing it, I receive these messages: image

Canato commented 3 years ago

Could you try an old version like 3.1.0 and see if is the same issue?

Rizza-Rabe commented 3 years ago

It also gives an error in all versions.

Canato commented 3 years ago

Could you change the order to

mavenCentral()
maven { url 'https://jitpack.io'}
denchic45 commented 3 years ago

Same result :(

Canato commented 3 years ago

Wanna help you people, but no idea what could be =/ Jitpack look up and running, we didn't had this issue before.

Please let me know if you find a solution or what the problem is ><'

denchic45 commented 3 years ago

I will still experiment with this :) And so the problem is strange, I already had Jitpack earlier for other libraries

connyduck commented 3 years ago

It says you should Disable offline mode and sync project, have you tried that?

lightstudioapp commented 3 years ago

You need to enable gradle online mode and connect your pc/laptop to internet.

denchic45 commented 3 years ago

Yes, I tried it first, but it didn't help

Canato commented 3 years ago

@Rizza-Rabe I can see that you are using the library, how did you fix this?

Canato commented 3 years ago

The owner of the issue have the library already working. Hopefully will share with us =D

zihadrizkyef commented 3 years ago

it also occured to me. i've tried many version but gradle still cannot found it. what's wrong?