Error:No such property: GradleVersion for class: JetGradlePlugin - java

I am getting below error in intellij for a gradle project. I am importing existing gradle project and trying refresh it in gradle window.
Error:No such property: GradleVersion for class: JetGradlePlugin
Please advise.

I had this problem while upgrading to java 11.
I had to downgrade gradle from 5.0 to 4.10.3.
Then I needed to upgrade to the latest version of Intellij Idea.
You'll probably just need to upgrade Intellij.
edit: Downgrading gradle is the fix. The Intellij version didn't matter.

You need at least Idea 2017.3 to work with Gradle 5.0+, earlier versions are not compatible because of implicit import being removed in version 5.0. See related youtrack ticket

After a couple of days, I found a solution to this.
1)First, find the Gradle version (gradle -v), In my case, Gradle version was 4.1.
2)Then in the android studio change my Gradle version to 4.1
(File --> Project Structure -> Project)
3)Click ok Button.
that's it :)

This worked for me.
Go to 'Settings -> Build, Execution, Deployment -> Build Tools -> Gradle'
And select 'Use local gradle distribution'

I just had to downgrade gradle from 5.1.1 to 4.10.3 to resolve it. However it caused an another error: “cannot resolve symbol R” in Android Studio. I was using gradle 3.3.0. It was the main culprit. Gradle 3.2.1 removed the error.

it's work downgrade gradle from 5.1.1 to 4.10.3

This was happend to me after i fromat my lap and after installing android 3.1 i tryed to open my projects then this error came
This worked for me:
unstall the android studio > reinstaleled it and updat to the leatest version > upadate gradle

Related

Flutter Error (while build apk) : FAILURE: Build failed with an exception. > Could not resolve all files for configuration ':classpath' [duplicate]

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

Can't use Java 18.0.1.1 and Gradle 7.3.3 to import Gradle project android

I have installed with version 0.68.2 due to the fact that I got error while installation.
The app installed successfully, but when I opened the project, I got an error:
Can't use Java 18.0.1.1 and Gradle 7.3.3 to import Gradle project android.
How to resolve this issue?
I have tried to search. It needs gradle version 7.5 to use java 18, but I don't know how to upgrade or downgrade gradle versions.
Try following steps to change gradle version.
Navigate to the root location of the project, then gradle/wrappper
folder, Find the gradle-wrapper.properties file in above folder.
Change the distributionUrl to the required version
https://services.gradle.org/distributions/gradle-7.5-bin.zip

You are currently using tooling API version 2.2.1. You should upgrade your tooling API client to version 3.0 or later

I have created gradle project from here and while importing Gradle(STS) from eclipse I am getting error and image of error log is
So, I am not able to import my project. any suggestion?
I know its quite a late response. But, It might help others.
Download Gradle Zip from Gradle website
Open your eclipse Preferences
Select Gradle STS -> choose your gradle directory
This solved mine.
Apologies for unable to reproduce this issue in my Eclipse or STS IDE. But, I have faced this issue in my IntelliJ IDE. The updated version of the IDE resolved this issue.
https://www.jetbrains.com/idea/download/#section=windows

Golang plugin on Intellij

I want to use Intellij 13.1.6 as my go app IDE, but there are some problem I can't sovle yet.
The default version of go support plugin installed on Intellij is 0.9.15, but in this version, there are some bugs so that I can build project successfully.
So I try to build the go-plugin jar by myself follow this article:
https://content.pivotal.io/blog/setting-up-the-google-go-plugin-with-intellij-idea-13-on-os-x-10-8-5
But when I click Prepare Plugin Module 'google-go-language' For Deployment, it shows errors cause some method can't be found. As the following figure
I think the problem is the version of my Intellij lack of some lib so that I can't build go-plugin jar successfully. How do I fix this?
Appreciate any replies.
Intellij Version: 13.1.6
JDK Version: 1.7
Go-plugin on GitHub: the latest commit on master branch (0261ffa)
The latest version of the Go plugin code requires IntelliJ IDEA 14.

Eclipse to Android Studio - Gradle Issue

I receive errors when trying to import my Cordova based, eclipse exported "build.gradle" file, when importing into Android Studio:
"Gradle version 1.6 is required. Current version is 1.9"
However, upon changing the version using a local gradle distribution I receive the following:
"You are using an old, unsupported version of Gradle. Please use version 1.8 or greater."
Anyone have any ideas how to resolve this?
Stumbled upon the same issue, you should check this link where everything is pretty well explained:
http://rexstjohn.com/exporting-android-project-eclipse-android-studio-0-4-0/

Categories