Unresolved reference, in wrong test scope - Android studio 3.5

Only workaround to fix this until issue 140375151 is resolved is this:

  1. Put the cursor on one of the affected references
  2. Type alt/options + Enter
  3. Choose Inspection "Unresolved reference, in wrong test scope"
  4. Choose Edit inspection profile setting
  5. Remove the check from the inspection setting to disable it and click OK

The unresolved references should no longer show as unresolved.


This Google issue may be related. https://issuetracker.google.com/issues/140375151