Search code examples
androidandroid-module

Gradle error debugCompileClasspath' to contain exactly one file, however, it contains no files, when adding a new Dynamic Feature Module


Created a new Dynamic Feature Module: dynamic, build fails with the below exception: Execution failed for task ':dynamic:processDebugManifest'.

Expected configuration ':dynamic:debugCompileClasspath' to contain exactly one file, however, it contains no files.

Tried adding baseFeature true to the app gradle, and getting error:

Could not find method baseFeature() for arguments [true] on object of type com.android.build.gradle.internal.dsl.BaseAppModuleExtension.


Solution

  • I solved this, you need to have all flavors of the base module in your dynamic feature module also