-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FakeStorage unresolved reference on TestStorageModule #78
Comments
reisfernanda
added a commit
to reisfernanda/codelab-android-dagger
that referenced
this issue
Nov 3, 2023
Still impacted by this issue in: I did some research about sharing code between test and androidTest folder and got the same solution as yours. Thanks for posting this : ) |
@manuelvicnt Please check the solution to this issue. Thanks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TestStorageModule
fromandroidTest
shows an unresolved reference error forFakeStorage
on the solution branch, even though the instrumented tests run successfully.FakeStorage
is located at thesharedTest
package, and this package is shared with tests throughsourceSets
, but it looks like sharing code this way is not supported anymore, according to this comment on Google Issue Tracker.A suggestion found on the same comment on Google Issue Tracker is to create a new module with the code that needs to be shared and add it as a dependency for
testImplementation
andandroidTestImplementation
.Android Studio version:
The text was updated successfully, but these errors were encountered: