Question: How can I configure Gradle to establish a dependency between my "testData" module and the "app" module with multiple flavors?
Context: I'm currently working on a Gradle-based Android project, where I've created a module named "testData" that needs to depend on the "app" module. However, the "app" module has multiple flavors, and I'm unsure about the correct approach to set up this dependency, considering the
different flavors.
I tried to use this approach, but it is not working:
implementation project(path: ':app', configuration: 'myFlavor')
here is the error I am getting
Project :testData declares a dependency from configuration 'implementation' to configuration 'myFlavor', which is not declared in the descriptor for project :app.
Any guidance or suggestions on achieving this configuration in Gradle would be greatly appreciated. Thank you!