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
Related
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 am using Android Studio version - 4.2.0.24. When I create a new project in it, it says Gradle Project sync failed.
It also shows an error:
A problem occurred configuring root project 'ChatTutorial'.
Could not resolve all artifacts for configuration ':classpath'.
Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.
Searched in the following locations:
-https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom
-
https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom
Required by:
project :
Possible solution:
Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Please help with this problem!!!
After I updated my Android Studio to v2.3.3 and with it updated the required build tools and sdk version, have been getting the following error when I run ./gradlew assemble --stacktrace:
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':OpenEdXMobile'.
Could not resolve all dependencies for configuration ':OpenEdXMobile:_prodDebugApkCopy'.
Could not find com.android.databinding:baseLibrary:2.3.3.
Searched in the following locations:
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
file:/home/travis/build/edx/edx-app-android/sdk-manager/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
Required by:
project :OpenEdXMobile
Could not find com.android.databinding:baseLibrary:2.3.3.
Searched in the following locations:
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.pom
file:/usr/local/android-sdk/extras/android/m2repository/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
file:/home/travis/build/edx/edx-app-android/sdk-manager/com/android/databinding/baseLibrary/2.3.3/baseLibrary-2.3.3.jar
Required by:
project :OpenEdXMobile > com.android.databinding:library:1.3.1
project :OpenEdXMobile > com.android.databinding:adapters:1.3.1
Full report from Travis-CI can be found here.
Here are some relevant details:
The gradle's distribution url: distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
Gradle version in my module's build.gradle is v2.3.3.
My full build.gradle is kinda big so here's the link to it.
https://github.com/edx/edx-app-android/blob/f899aeca945dea9a010af727e2b3ff1176e86f4e/build.gradle
Do mention if I have missed any details :)
Sadly I wasn't able to find a solution that worked with the settings and versions mentioned in the question.
Quick Fix:
I just had to downgrade my gradle version to v2.3.0 and everything worked just fine.
Future plan:
Will update this answer once I find a solution, for now I've mentioned the quick fix, so that the community can benefit.
I imported an existing Android project in the Android Studio but it does not build because of this :
Error:A problem occurred configuring project ':appName'.
> A problem occurred configuring project ':myTracksLib'.
> Could not resolve all dependencies for configuration ':myTracksLib:_debugCompile'.
> Could not find com.google.protobuf:protobuf-java:2.5.
Searched in the following locations:
https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.pom
https://jcenter.bintray.com/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.jar
file:/Users/name/Library/Android/sdk/extras/android/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.pom
file:/Users/name/Library/Android/sdk/extras/android/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.jar
file:/Users/name/Library/Android/sdk/extras/google/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.pom
file:/Users/name/Library/Android/sdk/extras/google/m2repository/com/google/protobuf/protobuf-java/2.5/protobuf-java-2.5.jar
Required by:
AppName:myTracksLib:unspecified
How can I solve that? Project builds in Eclipse so I do not know why this is happening.
I have seen this but I do not know how it related to Android Studio or not.
According to the search function of Maven Central:
http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.google.protobuf%22%20AND%20a%3A%22protobuf-java%22
There's a 2.5.0 version, not 2.5. Try changing the version in your build script to 2.5.0.
I have the latest edition of Intellij.
After creating a blank Gradle Android Project I get the following error message when attempting to build the project:
Error:Gradle: A problem occurred configuring project ':app'.
Could not resolve all dependencies for configuration ':app:_debugCompile'.
Could not find any version that matches com.android.support:appcompat-v7:19.+.
Required by:
test6:app:unspecified
How can I fix this?