Posts

Showing posts with the label gradle

Why am I getting AbstractDynamicObject$CustomMessageMissingMethodException error?

41 3 I have just started a new project and am trying to connect to Firebase. As soon as I try to build my project I got the error : Could not parse the Android application Module's Gradle Config, so I looked in my build which told me that jCenter() was deprecated and that I should remove it. When I removed it, everything worked fine. However, when I tried to connect to Firebase I got the error: AbstractDynamicObject$CustomMessageMissingMethodException. What may be causing this? Full stack trace: Caused by: java.lang.RuntimeException: com.android.build.gradle.internal.crash.ExternalApiUsageException: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method setVariantDir() for arguments [debug] on task ...

Gradle tasks are not showing in the gradle tool window in Android Studio 4.2

53 4 I just updated Android Studio to version 4.2. I was surprised to not see the Gradle tasks in my project. In the previous version, 4.1.3, I could see the tasks as shown here: But now I only see the dependencies in version 4.2: I tried to clear Android Studio's cache and sync my project again, but there was no change. Is this a feature change? android-studio gradle android-studio-4.2 Share Improve this question Follow ...

Gradle tasks are not showing in gradle tool window in android studio 4.2

12 I just updated my android studio to version 4.2 . I had the surprise to not see the Gradle tasks in my project. It was working in the previous version 4.1.3 as we can see here: But now I only see the dependencies in version 4.2 : I tried to clear the cache of android studio and sync my project again. But no change. May it is a feature changes ? But I do not think so because it is really annoying to not see the gradle tasks in this tab. May someone got a solution about this ? I could see anything related to this problem on internet. Thanks a lot ! android android-studio gradle android-studio-4.2 ...

Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8

20 I download the newest Android Studio, I want to run the Android Jetpack Compose Project, But when I run , I got the error: > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing `org.gradle.java.home` in `gradle.properties`. I already download Java 11, And add java 11 in gradle.properties. org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home The JAVA_HOME shows Java 11, But I run, It doesn't work, /Library/Java/JavaVirtualMachines/jdk-11.0.10.jdk/Contents/Home How should I d...