Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 865
Gauri Gadkari Avatar asked Oct 24 '18 20:10

Gauri Gadkari


1 Answers

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

like image 101
Gauri Gadkari Avatar answered Nov 06 '22 00:11

Gauri Gadkari