amitshekhariitbhu / Fast-Android-Networking

🚀 A Complete Fast Android Networking Library that also supports HTTP/2 🚀
https://outcomeschool.com
Apache License 2.0
5.68k stars 956 forks source link

problem in adding library in gradle #307

Open yousefan opened 6 years ago

yousefan commented 6 years ago

hi when i add the blew link to my gradle to add this library i saw an error that say : could not solve com.amitshekhar.android:android-networking:1.0.1 what's the problem, i try this in android studio 3.1 and 2.2 but there was same problem what should i do? com.amitshekhar.android:android-networking:1.0.1

yousefan commented 6 years ago

how can i download the jar file of this library?

fahmyferdian commented 6 years ago

Same problem here : Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.amitshekhar.android:android-networking:1.0.2.

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.amitshekhar.android:android-networking:1.0.2.

Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.amitshekhar.android:android-networking:1.0.2.

Unable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.amitshekhar.android:android-networking:1.0.2.

Unable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.amitshekhar.android:android-networking:1.0.2.

anchitgupt commented 5 years ago

fullscreen_15_02_19__1_53_pm

anchitgupt commented 5 years ago

hi when i add the blew link to my gradle to add this library i saw an error that say : could not solve com.amitshekhar.android:android-networking:1.0.1 what's the problem, i try this in android studio 3.1 and 2.2 but there was same problem what should i do? com.amitshekhar.android:android-networking:1.0.1

Update your studio to 3.3

heechokim commented 5 years ago

hi i have same problem. i updated my studio to 3.3. but, the problem did not solve... what should i do..? thank you for reading my question!

heechokim commented 5 years ago

oh i solve this problem! the problem was jcenter server not working!

Ayala07 commented 4 years ago

oh i solve this problem! the problem was jcenter server not working!

Hello, I have seen that you have been able to solve the problem, and I would like to know if you could help me with it. Since I don't have much experience in the field. Beforehand thank you very much

maxxy212 commented 3 years ago

Hello team, Jcenter is now deprecated in the new android artic fox build. is there a way this networking library can on mavencentral ?

inyong1 commented 3 years ago

Hello team, Jcenter is now deprecated in the new android artic fox build. is there a way this networking library can on mavencentral ?

You can use this one

`repositories {

// jcenter()

mavenCentral()

google()

maven { url "https://jitpack.io" }

}` And the depedency

implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:1.0.2'

AwesomeIndustry commented 2 years ago

None of the answers on this page were working for me, but I did some digging and apparently Gradle changed some things about how it handles repositories. Here's how I fixed the issue:

  1. In settings.gradle, find DependencyResolutionManagement and add maven { url 'https://jitpack.io' } to the repositories section:
    dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
    }
  2. In your build.gradle for the Project (NOT 'Module'), add the individual module:
    implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:v1.0.0'

Note: if you have previously added an allprojects { repositories { ... } } section with maven { url 'https://jitpack.io } in it, I found this would only work if you removed that section. Check out the answer from wwilczyn from this Stackoverflow thread (as of this writing it's the #2 answer on the page).

KenM66 commented 2 years ago

implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:1.0.2'

This worked for me. Thanks!

shoaib-malik-org commented 1 year ago

Thanks you

shoaib-malik-org commented 1 year ago

Now its working

vi5hnuu commented 1 year ago

None of the answers on this page were working for me, but I did some digging and apparently Gradle changed some things about how it handles repositories. Here's how I fixed the issue:

  1. In settings.gradle, find DependencyResolutionManagement and add maven { url 'https://jitpack.io' } to the repositories section:
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}
  1. In your build.gradle for the Project (NOT 'Module'), add the individual module:
implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:v1.0.0'

Note: if you have previously added an allprojects { repositories { ... } } section with maven { url 'https://jitpack.io } in it, I found this would only work if you removed that section. Check out the answer from wwilczyn from this Stackoverflow thread (as of this writing it's the #2 answer on the page).

Thank you very much....

Talha-Waris60 commented 1 year ago

Thanks bruh its working now..

DineshDk01 commented 1 year ago

implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:v1.0.0'

None of the answers on this page were working for me, but I did some digging and apparently Gradle changed some things about how it handles repositories. Here's how I fixed the issue:

  1. In settings.gradle, find DependencyResolutionManagement and add maven { url 'https://jitpack.io' } to the repositories section:
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}
  1. In your build.gradle for the Project (NOT 'Module'), add the individual module:
implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:v1.0.0'

Note: if you have previously added an allprojects { repositories { ... } } section with maven { url 'https://jitpack.io } in it, I found this would only work if you removed that section. Check out the answer from wwilczyn from this Stackoverflow thread (as of this writing it's the #2 answer on the page).

this is working for me.....

TejasKumar2009 commented 1 year ago

None of the answers on this page were working for me, but I did some digging and apparently Gradle changed some things about how it handles repositories. Here's how I fixed the issue:

  1. In settings.gradle, find DependencyResolutionManagement and add maven { url 'https://jitpack.io' } to the repositories section:
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        maven { url 'https://jitpack.io' }
    }
}
  1. In your build.gradle for the Project (NOT 'Module'), add the individual module:
implementation 'com.github.amitshekhariitbhu:Fast-Android-Networking:v1.0.0'

Note: if you have previously added an allprojects { repositories { ... } } section with maven { url 'https://jitpack.io } in it, I found this would only work if you removed that section. Check out the answer from wwilczyn from this Stackoverflow thread (as of this writing it's the #2 answer on the page).

Thanks, It worked... !