Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 736
Eric Hasselbring Avatar asked Jun 26 '21 23:06

Eric Hasselbring


2 Answers

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.

like image 73
Cristian Peña Avatar answered Oct 19 '22 18:10

Cristian Peña


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

like image 27
Eric Hasselbring Avatar answered Oct 19 '22 16:10

Eric Hasselbring