tonyofrancis / Fetch

The best file downloader library for Android
https://www.meta.stackoverflow.com/tags/fetch2
Apache License 2.0
1.67k stars 344 forks source link

Today i face error :Failed to resolve: #657

Closed ThreeMinutesFix closed 1 year ago

ThreeMinutesFix commented 1 year ago

Failed to resolve: androidx.tonyodev.fetch2:xfetch2:3.1.6 Add Google Maven repository and sync project Show in Project Structure dialog Affected Modules: app

Failed to resolve: androidx.tonyodev.fetch2okhttp:xfetch2okhttp:3.1.6 Add Google Maven repository and sync project Show in Project Structure dialog Affected Modules: app

ss: https://ibb.co/vHz8q08 Dont know whats wrong because it was working fine till today noon

RamProg commented 1 year ago

You need to migrate to

implementation "com.github.tonyofrancis.Fetch:xfetch2:3.1.6"

https://github.com/tonyofrancis/Fetch/issues/586

ThreeMinutesFix commented 1 year ago

Thanks but still http shows error Failed to resolve: androidx.tonyodev.fetch2okhttp:xfetch2okhttp:3.1.6 Add Google Maven repository and sync project Show in Project Structure dialog Affected Modules: app

RamProg commented 1 year ago

Did you see this? https://github.com/tonyofrancis/Fetch/issues/586#issuecomment-997966318

ThreeMinutesFix commented 1 year ago

yes friend i have implemented soln error gone for first dependency and error 2 is still there https://ibb.co/cJq3J3M and i read that recommended to use on my own project with that two classes but i dont get the line--> you also need to implement okhttp dependency separately in your build.gradle and maybe other dependencies.

ahmedsalemelzeiny commented 1 year ago

@ThreeMinutesFix @RamProg Did you find any solution?

ThreeMinutesFix commented 1 year ago

@ThreeMinutesFix @RamProg Did you find any solution?

no As mentioned by repo owner and in #152 we need to add those 2 classes inside our module

omidnaghipoor commented 1 year ago

You should use

implementation "com.github.tonyofrancis.Fetch:xfetch2:3.1.6"

Insted of

implementation "androidx.tonyodev.fetch2:xfetch2:3.1.6"

ThreeMinutesFix commented 1 year ago

yeah thanks now its fixed 👍