title: Project :app declares a dependency from configuration 'implementation' to configuration 'debug' which is not declared in the descriptor for project
body: <p>I am trying to add a Kotlin Multiplatform Module as part of an Android project I am building. In the library, my top level <code>build.gradle.kts</code> looks like this:</p>
  <pre><code>buildscript {
      repositories {
          gradlePluginPortal()
          google()
          mavenCentral()
      }
      dependencies {
          classpath(&quot;org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21&quot;)
          classpath(&quot;com.android.tools.build:gradle:7.1.0&quot;)
      }
  }
  
  allprojects {
      repositories {
          google()
          mavenCentral()
      }
  }
  
  tasks.register(&quot;clean&quot;, Delete::class) {
      delete(rootProject.buildDir)
  }
  </code></pre>
  <p>Then my app level build.gradle.kts looks like this:</p>
  <pre><code>plugins {
      kotlin(&quot;multiplatform&quot;)
      id(&quot;com.android.library&quot;)
  }
  
  kotlin {
      android()
  
      listOf(
          iosX64(),
          iosArm64(),
          iosSimulatorArm64()
      ).forEach {
          it.binaries.framework {
              baseName = &quot;shared&quot;
          }
      }
  
      sourceSets {
          val commonMain by getting
          val commonTest by getting {
              dependencies {
                  implementation(kotlin(&quot;test&quot;))
              }
          }
          val androidMain by getting
          val androidTest by getting
          val iosX64Main by getting
          val iosArm64Main by getting
          val iosSimulatorArm64Main by getting
          val iosMain by creating {
              dependsOn(commonMain)
              iosX64Main.dependsOn(this)
              iosArm64Main.dependsOn(this)
              iosSimulatorArm64Main.dependsOn(this)
          }
          val iosX64Test by getting
          val iosArm64Test by getting
          val iosSimulatorArm64Test by getting
          val iosTest by creating {
              dependsOn(commonTest)
              iosX64Test.dependsOn(this)
              iosArm64Test.dependsOn(this)
              iosSimulatorArm64Test.dependsOn(this)
          }
      }
  }
  
  android {
      compileSdk = 31
      sourceSets[&quot;main&quot;].manifest.srcFile(&quot;src/androidMain/AndroidManifest.xml&quot;)
      defaultConfig {
          minSdk = 24
          targetSdk = 31
      }
  }
  </code></pre>
  <p>Back in my Android project I am including the file in the settings.gradle like this:</p>
  <pre><code>include ':SampleModule'
  project(':SampleModule').projectDir = new File(settingsDir, '../SampleModule')
  </code></pre>
  <p>Then in my build.gradle like this:</p>
  <pre><code>implementation project(path: ':SampleModule')
  </code></pre>
  <p>Unfortunately though, I keep getting the same frustrating error:</p>
  <pre><code>Could not determine the dependencies of task ':app:mergeDebugAssets'.
  &gt; Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
     &gt; Could not resolve project :SampleModule.
       Required by:
           project :app
        &gt; Project :app declares a dependency from configuration 'implementation' to configuration 'custombuild' which is not declared in the descriptor for project :SampleModule.
  </code></pre>
  <p>Any idea why this might be happening?</p>