You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After removing ktlint, the project can run sync and build normally.
java.lang.NoClassDefFoundError: com/android/build/api/dsl/CommonExtension
at org.jlleitschuh.gradle.ktlint.android.AndroidPluginsApplierKt$androidPluginConfigureAction$1.invoke(AndroidPluginsApplier.kt:67)
at org.jlleitschuh.gradle.ktlint.android.AndroidPluginsApplierKt$androidPluginConfigureAction$1.invoke(AndroidPluginsApplier.kt:66)
at org.jlleitschuh.gradle.ktlint.android.AndroidPluginsApplierKt$applyKtLintToAndroid$1.invoke$lambda-0(AndroidPluginsApplier.kt:29)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:123)
The text was updated successfully, but these errors were encountered:
Same here. Trying to integrate ktlint gradle in this template (multi-module branch) following the doc, into the root build.gradle. Getting the same error. Would appreciate some help.
ktlint gradle version: 11.0.0
agp version: 7.2.2
gradle version: gradle-7.5.1-bin
After removing ktlint, the project can run sync and build normally.
The text was updated successfully, but these errors were encountered: