gradle / gradle

Adaptable, fast automation for all
https://gradle.org
Apache License 2.0
16.64k stars 4.66k forks source link

gradle 5.0 have a problem with Android Studio 3.2.1 #8088

Closed skavengeer closed 5 years ago

skavengeer commented 5 years ago

Expected Behavior

Expected -> Build project

Current Behavior

Curent -> Not Build! Generate ERROR

Context

Caused by: java.lang.AbstractMethodError: org.jetbrains.plugins.gradle.tooling.util.ModuleComponentIdentifierImpl.getModuleIdentifier()Lorg/gradle/api/artifacts/ModuleIdentifier;

Steps to Reproduce (for bugs)

Android studio 3.2.1. with Gradle ver 5.0 I go back to Gradle ver 4.10.3 and I do not have any problem!

Your Environment

PC , OS Windows 10 x64, Intel core i5-8600k, Coffe Lake, Java 11.0

ljacomet commented 5 years ago

Gradle 5.0 is not compatible with Android 3.2.

This is indicated in the upgrade guide.

Note that combined effort from the Gradle and Android team may end up making Android 3.3 compatible, so you may not have to wait until 3.4 is out.

MaxEgg commented 5 years ago

Same problem with intelliJ

skavengeer commented 5 years ago

I am migrate to ver android studio 3.3R and to this moment I do not have problem with gradle 5.0, but I recomende you to build your project with gradle ver 4.10. How m-r Jacomet write, Gradle NOT compatible with Android Studio 3.2. To IntelleJ IDE, I see that they have a big problem with visual component preview, must write every time for new name on Theme listing (Base) or change name implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'...to alpha1.. To my self only, I think my be, If Gradle is not compatible with Android Studio and Intellj why thy do it Gradle? For render problem intelliJ for android developer Check your build.gradle (Module: app) file and change: compileSdkVersion 28 targetSdkVersion 28 To: compileSdkVersion 27 targetSdkVersion 27

IsabellaVel commented 5 years ago

Hello, I also have this issue for one of my older projects only, even though I went back to Gradle 4.10.3. I have a newer project which is building just fine, so I am not sure really what is the issue here.

Can you please help? I updated AS and IntelliJ IDE too.

image

Thanks in advance!

skavengeer commented 5 years ago

Isabella some help..only for this picture do not understand where is problem do you see log file for errors? With version on java you try to build project too....have importance

SkyFlyTang commented 5 years ago

remove .gradle

kvbutler commented 5 years ago

Yeah rollback to Gradle 4.8 works okay