I've included some dependencies to my gradle , they all works very well but it's been 3 days that one of these dependencies is not working anymore and I get error when gradle project sync is in progress and after a while I get this error :
Error:(29, 13) Failed to resolve: com.koushikdutta.ion:ion:2.+
Show in File<br>Show in Project Structure dialog
I don't use any proxies, I reset android studio settings , I've tried some other projects and all of them has the same error .
the question is , How can I use this library without using dependencies ?
this is the library website :
https://github.com/koush/ion
how can I do so ?
Because this comment served me as an answer after so many painful hours, thanks to A-n-v-e-s-h:
Just add dependency compile 'com.koushikdutta.ion:ion:2.1.6' in ur app gradle file. It will work.
Though, it might seem like specifying any specific version would, I did try with 2.1.7 before, it failed - could be a failure to resolve that. But the 2.1.6 above did work for me as well. Thanks to the original poster...
Maybe this will help you: in Android Studio, click File -> New -> Import new module -> browse to the dependencies location.
Related
I am working on my first Android application with firebase by self_studying with some tutorials to get started with.
Now, I was trying to set the user path by following these steps.
Choose a sign-in method (Email/Password)
Go to Docs -> Copy Gradle dependency line (Authentication) which was com.google.firebase:firebase-auth:19.1.0
Paste on build.gradle(Module:App) under dependencies as implementation 'com.google.firebase:firebase-auth:19.1.0'
Sync the project
The issue is when I synced the project following error occurs.
ERROR: Failed to resolve: com.google.firebase:firebase-auth:19.1
Show in Project Structure dialog
Affected Modules: app
Can anyone help me to resolve this error?
P.S. I saw some post which having the same issue but in different versions. Answers for those were with the version changings. That's why I'm asking for a more specific solution.
My Gradle project sync failed. Basic functionality (e.g. editing debugging) will not work properly.
I installed Android Studio and updated everything (3.2.1) , but whenever I create new project I get these 3 errors :
Failed to resolve: com.android.support:appcompat-v7:28.0.0
Failed to resolve: com.android.support.constraint:constraint-layout:1.1.3
Failed to resolve: com.android.support.test:runner:1.0.2
What's wrong?
Thanks in advance
You might need a Proxy to achieve a successful Gradle sync!
Because repositories are restricted to access from IRAN.
Also you can use Shecan.ir and set your dns to the ip from this site.
If it was't about your proxy access! please share complete gradle & error here
Please check if your build.gradle(Project) looks like this
and if not, try to change change gradle version to be as same as on this photo.
Hope this help
i found some way for android studio 4.2
check bottom left
step 1 : find build
step 2 : you will get message sync error
step 3 : message will say to install missing gradle
step 4 : install it
and done , its work for me
I am trying to include exoplayer in my project but am getting the following errors
Failed to resolve: com.google.android.exoplayer:exoplayer:r2.6.1
then when I click Install Repository and sync project I get another error
Could not find dependency "com.google.android.exoplayer:exoplayer:r2.6.1"
Anyone who can knows how to fix this?
Found the solution! instead of "com.google.android.exoplayer:exoplayer:r2.6.1" it is supposed to be "com.google.android.exoplayer:exoplayer:2.6.1"
Note there is no "r" at exoplayer:2.6.1
i am using android studio to create simple image slider project and i am using this library. but when i want to see dependencies tree i got 100 error. i have searched a lot bot does not see such even problem.
here is build gradle :
here is errors:
and i have installed support library repository:
this is not an error you are running the application as gradle androidDependencies and it's showing you the used dependencies change it from the run menu and select app
I want add a library to my project in Android Studio, but it gave me this error no matter what my library is. I always get this error when I want to add a library:
Error:(24, 13) Failed to resolve: com.squareup.retrofit2:retrofit:2.1.0
Do I have to sync the project in online mode to add a library? I sync project online work but sync never be ended.
You need to enable online mode so gradle can download the JAR and put it into the gradle dependencies directory. Optionally (which I dont recommend) you can download it manually and put it there.
However once you downloaded a particular dependency you gradle will synch it from the local repo, meaning you dont need internet to add it to another project.