In my base(:app) module build.gradle file I have (under defaultConfig block)
applicationId "com.example.mobile"
In my dynamic feature module build.gradle I have (under defaultConfig block)
applicationId "com.example.mobile.ondemand"
Similarly in the manifest of base module I have
package="com.example.mobile"
And in manifest of dynamic feature module I have
package="com.example.mobile.ondemand"
I've tried a lot so solutions, I've upgraded gradle and jdk to latest versions, I've tried removing applicationId and package values from the dynamic feature module. Also I've adhere to all the guidelines mentioned by google for implementing on demand feature module . Still I am getting this issue every time I build
Execution failed for task ':ondemand:generateDebugBuildConfig'.
> Failed to calculate the value of task ':ondemand:generateDebugBuildConfig' property 'applicationId'.
> Failed to calculate the value of property 'applicationId'.
> Collection is empty.
Some help would be really appreciated.