Could not find com.android.tools.build:gradle:7.3.3.
Searched in the following locations:
- https://plugins.gradle.org/m2/com/android/tools/build/gradle/7.3.3/gradle-7.3.3.pom
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.3.3/gradle-7.3.3.pom
Required by:
project:
The "com.android.tools.build:gradle:$version" is what we called Android Gradle Plugin(AGP), its latest stable version is 7.0.4 (until 1st Jan 2022), you can check all available versions here.
The 7.3.3 is for the Gradle platform itself, you can check all available versions here.
For their relationship, please check here.
Changes the Gradle JDK to jdk-11 helped me:
change gradle jdk version worked for me
go to File, Settings, Build, Execution, Deployment
build tools, gradle
Change Gradle JDK from the dropdown. I use Android Studio java home
You need to add google in the repositories block
in app level build.gradle file:
Because android gradle plugin resides on google repository
allprojects {
repositories {
google()..
}
I tried gradle 7.4.2 and everything is working fine now
https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
go to File, Settings, Build, Execution, Deployment
build tools, gradle
Change Gradle JDK from the dropdown. I use Android Studio java home
Hi I want to update Gradle in my android project,
File -> Project structure
Gradle version - 7.1.1
does this mean I am using nearly latest Gradle in my project?
I have seen some more reference of Gradle in my project in gradle-wrapper.properties
distributionUrl=https://services.gradle.org/distributions/gradle-7.1.1-all.zip
this might mean the same this which I saw in project structure.
what does the gradle reference in bellow lines of code mean?
resolutionStrategy {
eachPlugin {
val pluginId = requested.id.id
when {
pluginId.startsWith("org.jetbrains.kotlin") -> useVersion(kotlinVersion)
pluginId.startsWith("kotlinx") -> useModule("org.jetbrains.kotlin:kotlin-serialization:$kotlinVersion")
pluginId.startsWith("com.android") -> useModule("com.android.tools.build:gradle:4.2.2")
pluginId.startsWith("com.google.firebase.crashlytics") -> useModule("com.google.firebase:firebase-crashlytics-gradle:2.7.1")
pluginId.startsWith("com.google.gms.google-services") -> useModule("com.google.gms:google-services:4.3.8")
}
}
}
gradle version seems to be 4.2.2 and 2.7.1
What does this exactly mean.
and how can I update them please
sorry if my question is vague
I want to get the project to use latest Gradle version
thanks in advance
R
You can go to file -> Project structure and on the project tab you can select the last version of Gradle from the boxes and press ok.
then from Gradle scripts open gradle-wrapper.properties and and edit version part of distributionUrl manually.
Also, there is two version for Gradle, first Android Gradle Plugin version and second Gradle version you can see the latest versions in a table from bellow link:
https://developer.android.com/studio/releases/gradle-plugin
Could not find gradle.jar (com.android.tools.build:gradle:3.1.3).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.1.3/gradle-3.1.3.jar
I am getting this error while creating a new project in Android Studio 3.1.3
The default gradle install is part of Android Studio sdk so if you moved your Android Studio files location or have the wrong PATH defined in your environment it won't find the sdk location like this. If your path is to a different android studio installation version it might not have that particular version of gradle in it.
I show my solution in Android 3.2.1. Go to the file gradle-wrapper.properties and the line "distributionUrl" to change the version of gradle that you use, in my case i use "distributionUrl=https://services.gradle.org/distributions/gradle-3.2.1-all.zip"
Go to also File -> Setting -> Gradle and Select "Use default gradle wrapper (recommended)"
Change also in the buil.gradle(Project:TutorialKotlin) the line "classpath 'com.android.tools.build:gradle:3.2.1'"
In Android Studio, I simply created a new project, and it says that:
Gradle project sync failed. Basic functionality will not work properly.
I have searched the web and tried everything, but nothing worked. I have v0.4.6 of Android Studio using Gradle 1.11.
The Error Message Is:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\Vinnie\AndroidStudioProjects\MyFirstAppProject\MyFirstApp\build.gradle' line: 9
* What went wrong:
A problem occurred evaluating project ':MyFirstApp'.
> Gradle version 1.10 is required. Current version is 1.11. If using the gradle wrapper, try editing the distributionUrl in C:\Users\Vinnie\AndroidStudioProjects\MyFirstAppProject\MyFirstApp\gradle\wrapper\gradle-wrapper.properties to gradle-1.10-all.zip
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1 mins 7.011 secs
The Android plugin 0.8.x doesn't support Gradle 1.11, you need to use 1.10.
You can read the proper error message in the "Gradle Console" tab.
EDIT
You need to change gradle/wrapper/gradle-wrapper.properties file in this way:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
In my case NDK location was the issue.
go to File->Project Structure->SDK Location and add NDK location
This may be helpful for some.
My problem exactly is incomplete gradle-1.12-all file download.
Below is screen shot of the Error
I re-downloaded the file from the gradle site here and extracted it in path/to/the/gradle, in my case was in C:\Users\maneeOsman\.gradle\wrapper\dists\gradle-1.12-all\2apkk7d25miauqf1pdjp1bm0uo
I closed the android studio and reopen it in administrator privilege (Run as administrator).
The android studio starts downloading the necessary files for building and debugging. You can notice that from bottom-left indicator bar.
After this, it is working fine.
See the screen shot below
Here is the solution I found: On the project tree "app", right click mouse button to get the context menu. Select "open module setting", on the tree "app" - "properties" tab, select the existing "build tools version" you have. The gradle will start to build.
I have encountered this problem And I solved it as follows: File->Sync Project with Gradle Files
good luck!
After applying this fix that was found here... https://code.google.com/p/android/issues/detail?id=208295
in file $SDK/ndk_bundle/source.properties replace "12.0.2753695 beta 1" to "12.0.2753695-beta1"
My project was built successfully and ran on device and emulators although 5 warnings still remains.
Remove the dependency "junit:junit:4.12" from app modules...!!! This solution is for gradle to sync all files.
it was hard to solve but i did it
look go to
C:\Users\Vinnie\
delete .gradle file
its you didn't see it it may be in hidden files so if you use windows 7
right click then click on properties and click on hidden to be not checked
then the file will appear then delete it
i hope this works
I know this is an old thread but I ended up here with the same issue.
I solved it by comparing the dependencies classpath in the build.gradle script(Project) to the installed version.
The error message was pointing to the following folder
C:\Program Files\Android\android-studio3 preview\gradle\m2repository\com\android\tools\build\gradle
It turned out that the alpha2 version was installed but the classpath was still pointing to alpaha1. A simple change to the classpath ('com.android.tools.build:gradle:3.0.0-alpha2') was all that was needed.
This may not help everyone, but I do hope it help most people out.
I was behind firewall|proxy.
In my case with Studio, ERROR: Gradle sync failed & Cannot find symbol.
I have used
repositories {
jcenter(); // Points to HTTPS://jcenter.bintray.com
}
Replace it with http and maven
repositories {
maven { url "http://jcenter.bintray.com" }
}
i had same issue i solved by changing gradle plugin version and and gradle version
see image for more refrence
Use this line to your Build gradle app
repositories {
maven { url "http://jcenter.bintray.com" }}
Using an outdated gradle version may also result to fail in synchronization.
Download latest version from https://gradle.org/releases/ and download the "complete" latest version.
Now replace it with the outdated version which is located C:\Program Files\Android\Android Studio\gradle.
Go to settings(ctrl+alt+s) ,go to gradle and add the the new gradle directory in "use local gradle distribution" "Gradle home:C:\Program Files\Android\Android Studio\gradle\gradle4.4.1 ."
It Worked for me.
Hope u understand.
Update for 2018:
I have faced this issue recently and it was resolved by updating android studio & updating gradle when prompted then rebuilding the project
I had a "Install build tools and sync" link in the lower right hand corner of my screen. I clicked on that and it fixed the issue.
Each version of the Android Gradle Plugin now has a default version of the build tools. For the best performance, you should use the latest possible version of both Gradle and the plugin.
You recive this warning in case if you use latest gradle plugin but not use latest SDK version. For example for Gradle plugin 3.2.0 (September 2018) you requires Gradle 4.6 or higher and SDK Build Tools 28.0.3 or higher.
Although you typically don't need to specify the build tools version, when using Android Gradle plugin 3.2.0 with renderscriptSupportModeEnabled set to true, you need to include the following in each module's build.gradle file: android.buildToolsVersion "28.0.3"
see more https://developer.android.com/studio/releases/gradle-plugin
Update gradle to the latest available version and implement libraries to the latest version available, also check if google play services is latest if used.
Just now I updated my android studio from build 130.737825 to build 130.878379. When I create a project for the first time, I am getting following error.
Gradle: A problem occurred configuring project ':MyApplicationadfaldf'.
> Failed to notify project evaluation listener.
> Could not resolve all dependencies for configuration ':MyApplicationadfaldf:_DebugCompile'.
> Could not find any version that matches com.android.support:appcompat-v7:+.
Required by:
MyApplicationadfaldfProject:MyApplicationadfaldf:unspecified
What is the reason?
For others, who may be facing the same problem,
Go to Tools-> Android-> SDK Manager, and update all repositories. Now, everything will work properly.
Same issue in my project was fixed with this:
In Android Studio:
-> Go to File menu -> Settings -> Gradle ->
Now in Gradle Settings just check Use Auto-Import Now update Maven will be updated in Android Studio and this error should be gone.
http://tools.android.com/knownissues#TOC-Bundled-Maven-Repository
you need to install "android support repository"