Status Update
Comments
so...@google.com <so...@google.com> #2
Could you share the scheleton of the project?
From the description it is not clear how the dependency of :app
on :core-data
is configured as it would need to match the staging
build type (I assume you do not have product flavors) in :core-data
unless you apply additional cofiguration.
xa...@google.com <xa...@google.com> #3
Yes it's a duplicate of
:app(staging)
depends on :core-data(debug)
(I'm guessing via matchingFallbacks
), and :core-network(staging)
.
but :core-data(debug)
depends :core-network(debug)
.
do...@google.com <do...@google.com> #4
If you need a project to repro this with you can use this one:
git clone sso://devrel/apps/nowinandroid
git reset --hard c6e8177
Description
Here's my project setup:
:app
hasdebug
andstaging
variants and consumes:core-data
:core-data
has only adebug
variant and consumes:core-network
:core-network
hasdebug
andstaging
variantsWhen everything is set to
debug
, no problems.When
:app
and:core-network
are set tostaging
Android Studio shows the following error in the Build Variants window (see screenshot):With the additional message shown when hovering over the exclamation mark on the
:core-network
module:If I build and run the app, the
staging
variant of:core-network
is built successfully.I believe that Android Studio shouldn't be showing this error. Developers opening a project for the first time may falsely believe that there's a problem.
Seems similar, but not identical to: https://b.corp.google.com/issues/201824664