I get the following error when running the app on Android
ERROR: Failed to resolve: constraintlayout-solver
Affected Modules: app
enter image description here
please help me
Please try to fix the error adding a higher version of the ConstraintLayout dependency, as well as with higher minSdkVersion and then re-sync the project with Gradle again.
implementation "androidx.constraintlayout:constraintlayout:2.0.0-beta4".
For furhter reading take a look at the official documentation.
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.
In my android app's build file, I have given a wrong version of the library "com.google.firebase:firebase-core:17.0.0" for now the latest version is "com.google.firebase:firebase-core:16.0.4".
Later, I corrected the build file to use the correct version 'com.google.firebase:firebase-core:16.0.4'. Now while building the app, I am still getting the error.
Failed to resolve: com.google.firebase:firebase-core:17.0.0
I even tried to delete the dependency "com.google.firebase:firebase-core****" but still I am getting the error. Please help me to resolve.
Use same dependency for ads as used for the Core in your case (16.0.4).
Or follow this link for Further Instruction.
[https://firebase.google.com/docs/android/setup][1]
Also use implementation instead of api.
In my project, this normally worked, it gives an error now and i do not know why.
Failed to resolve: com.android.support:support-v4:26.3.1
It happens because this version doesn't exist.
Check all the versions here.
It happens because this version doesn't exist.
Check all the versions Recent Support Library and remove some unreleased libraries in your gradle file.
When I am trying to build a new project in android studio, I get this message and "Failed to resolve: com.android.support:appcompat-v7:25.+ Error (24, 13)" with a link like the following "Install Repository and sync project".But the real problem is when I click on the link i get a message "All packages are not available for download! The following packages are not available:
- Package id extras;android;m2repository". Please help me...These are the screen shots
enter image description here
enter image description here
Issue:
I was getting the same error. The problem was older code that was using an older version of com.android.support:appcompat namely 'com.android.support:appcompat-v7:23.4.0' in the build.gradle (Module:app) and I was compiling with compileSdkVersion 25.
Solution:
Update the dependency section to 'com.android.support:appcompat-v7:25.3.1' in the module level build.gradle file. If this solves your issue please vote for my answer.
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.