Error "unrecognized Attribute name MODULE" when building Android/Kotlin project
Hi everyone! I'm a beginner Kotlin developer writing my first Android app. I'm using the latest version of Android Studio (Hedgehog). I created the project using the "Empty Compose Activity" template.
The build fails with this error:
```
unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
```
Here is my build.gradle.kts file (module level):
```kotlin
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android") version "1.9.22"
}
android {
namespace = "com.example.myapp"
compileSdk = 34
defaultConfig {
applicationId = "com.example.myapp"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
}
compileOptions {
sourceCompatibilit
No answers yet.
Log in to leave an answer