performance-samples icon indicating copy to clipboard operation
performance-samples copied to clipboard

Failing to run assembleDebugAndroidTest in MacrobenchmarkSample app

Open BlueTurtle3 opened this issue 1 year ago • 1 comments

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):

Screenshot 2023-12-06 at 11 53 26

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!

BlueTurtle3 avatar Dec 06 '23 10:12 BlueTurtle3

Please post to StackOverflow with a MVCE and link here, so we can follow up.

keyboardsurfer avatar Sep 11 '24 15:09 keyboardsurfer