performance-samples
performance-samples copied to clipboard
Failing to run assembleDebugAndroidTest in MacrobenchmarkSample app
Hi,
I have migrated to androidx.benchmark:benchmark-macro-junit4:1.2.2
and when running the assembleDebugAndroidTest task for firebase testlab I am getting the following error (Same for 1.2.0-1.2.2):
The same thing happens when the MacrobenchmarkSample app. In both cases adding:
tools:overrideLibrary="androidx.benchmark.macro,androidx.benchmark.macro.junit4"
didn't help.
My workaround was to import the macro benchmark to implementation/api configurations instead of AndroidTest but the result is that when I build an apk
or a bundle
it generates huge traces in the assets folder named: trace_processor_shell_xxx' and
trace box_xxx`, increasing the file by over 10MB.
Thanks!
Please post to StackOverflow with a MVCE and link here, so we can follow up.