Android Studio - Failed to resolve sync ML Kit sample - android

So im trying to run this sample from ML kit.
I just created the firebase project and added the google-services.json file.
Im getting this errors:
Failed to resolve: com.google.firebase:firebase-ml-model-interpreter:16.2.0
Failed to resolve: com.google.firebase:firebase-ml-vision:17.0.0
Failed to resolve: com.google.firebase:firebase-ml-common:16.1.2
Any idea why?
PS: Im really new to this so if there is any information i can add to give clues about what is happening just ask and i ll edit the question.

There was a mismatch of the version number. The gradle file is reverted. Please try again for the sample app, and it should work now.

Sample app update was published before SDK was released. This should no longer be an issue now.

Related

Android studio gradle sync failed :constraintlayout-solver

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.

How to resolve "ERROR: Failed to resolve: com.google.firebase:firebase-auth:19.1"?

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.

Gradle project sync failed. basic functionality (e.g. editing debugging) will not work properly

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

Failed to resolve: com.google.firebase:firebase-core:17.0.0

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.

Could not find dependency "com.google.android.exoplayer:exoplayer:r2.6.1" in android studio 3.1

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

Categories

Resources