-
Notifications
You must be signed in to change notification settings - Fork 584
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
FirebasePerformance.getInstance() is crashing on instrumented unit tests #3114
Comments
Hi @MrHadiSatrio, thanks for reporting. It seems that this issue is replicable when build.gradle in app module:
build.gradle in project:
Could you check if adding these work? Thanks. |
Hi @MrHadiSatrio, thanks for the details. I was able to repro the issue, I'll try to get in contact with an engineer and see what we can find. |
@MrHadiSatrio I tried reproducing the issue based on the steps you provided. But unfortunately I'm not able to do the same. I'm sure there is something I have missed. Can you please help me reproduce the issue? Here is my sample project. Please make sure to add your google_services.json file to make sure you are able to move ahead on this. If there are any changes pending, please let me know. |
@visumickey, I was able to repro it on your sample project. Could you try adding the dependency to I'll edit my initial post to include this in the STR. |
Any update on this? tried with all latest version(s) and still the same issue. It breaks all Compose Layout tests in Library modules 😿 |
A temporary (not so much) workaround we have implemented is to add a separate manifest in the androidTest folder that removes the plugin. `
|
This should have been fixed over a year ago by #4242 can you please try the latest version of Perf and open a new issue if the problem persists, thanks! |
Describe your environment
Describe the problem
Getting this crash when running instrumented unit tests:
This happened on all tests that uses
ActivityScenario#launch(Activity)
, starting from Performance20.0.0
. Earlier releases worked fine without any code change.Steps to reproduce:
On an Android project with Firebase Performance setup:
:module
)firebase-perf
within the moduleandroidTest
directory./gradlew module:connectedCheck
...or...
google_services.json
file within:app
./gradlew module:connectedCheck
Relevant Code:
The text was updated successfully, but these errors were encountered: