The google-services plugin currently is not resolving in my project. I get the error:
What went wrong: A problem occurred configuring root project ''.
> Could not resolve all files for configuration ':classpath'.
> Could not find com.google.gms:google-services:4.0.2.
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.2/google-services-4.0.2.pom
https://dl.google.com/dl/android/maven2/com/google/gms/google-services/4.0.2/google-services-4.0.2.jar
https://jcenter.bintray.com/com/google/gms/google-services/4.0.2/google-services-4.0.2.pom
https://jcenter.bintray.com/com/google/gms/google-services/4.0.2/google-services-4.0.2.jar
https://maven.fabric.io/public/com/google/gms/google-services/4.0.2/google-services-4.0.2.pom
https://maven.fabric.io/public/com/google/gms/google-services/4.0.2/google-services-4.0.2.jar
Required by:
project :
When I browse the google maven repo here: https://dl.google.com/dl/android/maven2/index.html
the google-services library is just missing.
Related
I updated the Gradle from android studio. and when I try to run the project in vs code (Yes I already changed inside the build Gradle file too) showing this error.
What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:7.4.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
Required by:
project :
how can I fix this?
The gradle plugin has different versions in project level build.grade and gradle-wrapper.properties Here is the official documentation about this
i update my android project gradle plugin version to 7.0.2 and gradle version to 6.9.1
but after applay i get some error like below:
A problem occurred configuring root project 'HozorGhiyab'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find transform-api-2.0.0-deprecated-use-gradle-api.jar (com.android.tools.build:transform-api:2.0.0-deprecated-use-gradle-api).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/transform-api/2.0.0-deprecated-use-gradle-api/transform-api-2.0.0-deprecated-use-gradle-api.jar
> Could not find jetifier-processor-1.0.0-beta09.jar (com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta09).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-processor/1.0.0-beta09/jetifier-processor-1.0.0-beta09.jar
> Could not find jetifier-core-1.0.0-beta09.jar (com.android.tools.build.jetifier:jetifier-core:1.0.0-beta09).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta09/jetifier-core-1.0.0-beta09.jar
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
how can i fix this errors?
thanks
I tried to run a project which was generated on someone else's PC, but sync fails and I get this error when cleaning the project:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.google.android.gms:play-services:9.4.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.jar
file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/android/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.pom
file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/android/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.jar
file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/google/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.pom
file:/C:/Users/win7/AppData/Local/Android/sdk1/extras/google/m2repository/com/google/android/gms/play-services/9.4.0/play-services-9.4.0.jar
Required by:
Map:app:unspecified
was generated on someone other's PC on mine
They probably have the SDK repositories installed and you do not.
Seems like you are missing the Google Play Services Repository.
When I run Studio, Grade Build shows the error message like this
Error:A problem occurred configuring project ':tiangua'.
Could not resolve all dependencies for configuration ':tiangua:_debugCompile'.
Could not find any version that matches com.github.mmin18.layoutcast:library:1.+.
Searched in the following locations:
file:/E:/android/adt/sdk/extras/android/m2repository/com/github/mmin18/layoutcast/library/maven-metadata.xml
file:/E:/android/adt/sdk/extras/android/m2repository/com/github/mmin18/layoutcast/library/
Required by:
code:tiangua:unspecified
Error:(25) A problem occurred evaluating root project 'Side-Menu.Android-master'.
Failed to apply plugin [id 'android-reporting']
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':library'.
> Could not resolve all dependencies for configuration ':library:_debugCompile'.
> Could not find com.android.support:appcompat-v7:21.0.3.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.3/appcompat-v7-21.0.3.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.3/appcompat-v7-21.0.3.jar
Required by:
com.yalantis:library:1.0
first time to use android studio and met the problem with this, help me !