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
I got the same issue. But fix it for M1 arch.
Terminal -> open -a /Applications/Android\ Studio.app
Change your grandle version to 6.7.1 (File -> Project structure -> Gradle version)
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With