# A problem occurred evaluating project ':app'

**URL:** <https://discuss.gradle.org/t/a-problem-occurred-evaluating-project-app/47486>\
**Category:** Plugin Portal\
**Created:** [January 21, 2024, 1:16pm UTC](https://discuss.gradle.org/t/a-problem-occurred-evaluating-project-app/47486 "2024-01-21T13:16:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leomike](https://avatars.discourse-cdn.com/v4/letter/l/ea666f/32.png) [@leomike](https://discuss.gradle.org/u/leomike)\
**Post date:** [January 21, 2024, 1:16pm UTC](https://discuss.gradle.org/t/a-problem-occurred-evaluating-project-app/47486/1 "2024-01-21T13:16:32Z")

</div>

```plaintext
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
   > Could not create an instance of type com.android.build.gradle.internal.plugins.AppPlugin$ApplicationAndroidComponentsExtensionImplCompat.
      > Could not generate a decorated class for type AppPlugin.ApplicationAndroidComponentsExtensionImplCompat.
         > Cannot have abstract method AndroidComponentsExtension.registerSourceType().

```

What should I do?

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [January 21, 2024, 9:36pm UTC](https://discuss.gradle.org/t/a-problem-occurred-evaluating-project-app/47486/2 "2024-01-21T21:36:57Z")

</div>

Make sure the AGP version you are using is compatible with the Gradle version you are using.

If you need more help than that, please share a build `--scan` if possible,  
or at the very least the output of `--stacktrace` wich is both advised to do in the error message you just got.
