Error:(1, 1) A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'com.android.application']
Minimum supported Gradle version is 3.3. Current version is 2.14.1. If using the gradle wrapper, try editing the distributionUrl in /home/bitcode/Ameya_Workspace/ila/gradle/wrapper/gradle-wrapper.properties to gradle-3.3-all.zip
Here my gradle-wrapper.properties to gradle-3.3-all.zip is already present in application still I am getting this error
Isn't the error clear?
Minimum supported Gradle version is 3.3. Current version is 2.14.1.
Open Module Settings (your project) > Project > Gradle version and enter 3.3
Related
I have been trying to run my flutter app through an emulator but I end up getting an error in the app/build.gradle section. Below is the error message, any insights to this will help
What went wrong: A problem occurred evaluating project ':app'. > Failed to apply plugin 'kotlin-android'. > The current Gradle version 6.7 is not compatible with the Kotlin Gradle plugin. Please use Gradle 6.7.1 or newer, or the previous version of the Kotlin plugin.
Go to android folder in the project ==> gradle ==> gradle-wrapper.properties
then change the distributionUrl to
==> distributionUrl=https://services.gradle.org/distributions/gradle-6.7.1-all.zip
I'm creating an Ionic App with Ionic 3 and I've integrated FCM plugin from here. And after that whenever I try to build a project, then it gives error
A problem occurred evaluating root project 'android'.
Failed to apply plugin [id 'com.android.application']
Minimum supported Gradle version is 4.6. Current version is 4.1. If using the gradle wrapper, try editing the distributionUrl in Project_path\gradle\wrapper\gradle-wrapper.properties to gradle-4.6-all.zip
So what I did is change the distributionUrl to https\://services.gradle.org/distributions/gradle-4.6-all.zip and build the project. After building the url automatically changes back to https\://services.gradle.org/distributions/gradle-4.1-all.zip.
What could be the solution or I'm heading in the wrong direction.
I am not able to build a project in my mac. This was coded by someone else and given to me . I did change my gradle-wrapper.properties as recommended , but still facing the issue
Error:(1, 1) A problem occurred evaluating project ':app'.
Failed to apply plugin [id 'com.android.application'] Minimum supported Gradle version is 2.14.1. Current version is 2.10.
If using the gradle wrapper, try editing the distributionUrl in /Users/*****/Downloads/android_project/gradle/wrapper/gradle-wrapper.properties to gradle-2.14.1-all.zip.
Below is my gradle-wrapper.properties file
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.0-all.zip
Gradle sync output is also showing this error which I am not able to resolve - not sure if it has anything to do with the above
Error:(30, 13) Failed to resolve:
com.android.support.constraint:constraint-layout:1.0.0-alpha4
Install Repository and sync project<br><a
href="openFile:/Users/*****/Downloads/android_project/app/build.gradle">
Show in File</a><br><a href="open.dependency.in.project.structure">
Show in Project Structure dialog</a>
You are using a local gradle distribution. To change that go to
Android Studio -> File -> Settings -> Build, Execution, Deployment -> Gradle -> Use default gradle wrapper
And then you will use the gradle-wrapper.properties which actually should point to the latest version.
You can see them here at gradle distributions
You distributionUrl is wrong. Points to 2.14.0 version. Change it to:
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
I'm trying to build an Android project but the following error occurred
Error:(10, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Gradle version 2.8 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in C:\Users\...\gradle\wrapper\gradle-wrapper.properties to gradle-2.8-all.zip
It seem something's wrong with the Gradle version, however I checked the gradle-wrapper-property and it's already 2.10.
Also in File-Project Structure-Project, gradle-version is also 2.10
No idea how this happened, I've also restarted android-studio many times.
For those that still need help, an answer on another post did it for me link.
You need to change Settings > Builds,Execution,Deployment > Build Tools > Gradle >Gradle home path
Or set Use default gradle wrapper and edit Project\gradle\wrapper\gradle-wrapper.properties files field distributionUrl like this
distributionUrl=https://services.gradle.org/distributions/gradle-2.10-all.zip
I don't think that changing Gradle tools to version 1.5.0 is necessary, but if you're using 2.0-snapshot or beta version of gradle, I recommend you to change it to 1.5.0.
This error:
Error:(10, 1) A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Gradle version 2.8 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in
C:\Users...\gradle\wrapper\gradle-wrapper.properties to
gradle-2.8-all.zip
only tells you that your project's Gradle system is a bit outdated and need to be updated to newer version.
Open your project Android Studio and in navigator on the left find file called gradle-wrapper.properties. It should have a content like this:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
Change the last line with distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip
It should work.
Go To Android Preference and Just change Project level Settings to Use default gradle wrapper (recommended).
There is a bug in version checking in older android plugins. To fix this you can either go back to gradle 2.9 or use the newer plugin
buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
But I see from your error message that it tries to run with gradle 2.4 so this is maybe another problem.
Updating the version of android studio from 1.4 to 1.5.1 fixed this problem for me.
Error:(1, 1) A problem occurred evaluating project ':App Lite'.
Failed to apply plugin [id 'com.android.application']
Gradle version 1.10 is required. Current version is 2.4. If using the gradle wrapper, try editing the distributionUrl in /home/AppLite/gradle/wrapper/gradle-wrapper.properties to gradle-1.10-all.zip
You have to update the gradle-plugin for Android and gradle version.
They are different. You can find more info about the android plugin here
With the classpath inside your gradle files, you set the version of the android plugin for Gradle.
Change your classpath using:
classpath 'com.android.tools.build:gradle:1.3.1'
In the gradle/wrapper/gradle-wrapper.properties file you set the version of the Gradle. For example the 2.4 version.
distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip