Eric Hasselbring
Eric Hasselbring

Reputation: 1414

Caused by: groovy.lang.MissingPropertyException: No such property: logger for class: org.gradle.initialization.DefaultProjectDescriptor

running Pop OS/ Ubuntu, first time install of android studio and when I open my project gradle fails with

Caused by: groovy.lang.MissingPropertyException: No such property: logger for class: org.gradle.initialization.DefaultProjectDescriptor


other things I noticed unable to resolve `android` class

 // ♥ gradle -v

------------------------------------------------------------
Gradle 7.1
------------------------------------------------------------

Build time:   2021-06-14 14:47:26 UTC


Kotlin:       1.4.31
Groovy:       3.0.7
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          16.0.1 (Homebrew 16.0.1+0)
OS:           Linux 5.11.0-7614-generic amd64

any help pointing in a debug direction greatly appreciated

Upvotes: 8

Views: 5911

Answers (3)

Safeer
Safeer

Reputation: 1467

I was using Android Studio BumbleBee on OS 11.0

Upon updating the OS to 12.0, I started getting this error.

Then updated the Android Studio to Chipmunk and its resolved.

Upvotes: 0

Cristian Peña
Cristian Peña

Reputation: 71

I got the same issue. But fix it for M1 arch.

  1. Terminal -> open -a /Applications/Android\ Studio.app

  2. Change your grandle version to 6.7.1 (File -> Project structure -> Gradle version)

  3. Change your gradle JDK to open JDK 1.8 (Android Studio -> Preferences -> Build, Execution, Deployment -> Gradle -> Gradle JDK)

If you don't have JDK 1.8 please install

  • brew install --cask adoptopenjdk8

It's work for me.

Upvotes: 5

Eric Hasselbring
Eric Hasselbring

Reputation: 1414

I was able to attribute this error to using an incompatible node version, when I switched from 14.15.0 to 14.5.0 the issue was resolved

Upvotes: 2

Related Questions