You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently ran some tests with the newly-available beta01 builds, but I'm seeing NoMethodFound crashes when running our test suite in Firebase. From what I can see, somehow Tracing is being included transitively and is somehow being force-downgraded to version 1.0.0, breaking the tests. We're running with AGP 8.4.0. Is there a way for AndroidX Test to force the usage of 1.1.0?
Expected Results
Tests run without error.
Actual Results
Crashes like below:
java.lang.NoSuchMethodError: No static method forceEnableAppTracing()V in class Landroidx/tracing/Trace; or its super classes (declaration of 'androidx.tracing.Trace' appears in /data/app/~~9lig4wljZGQoejYAYxvzkg==/org.mozilla.reference.browser.debug-vt1UJt2eb2DgvMdAGFjIQg==/base.apk!classes13.dex)
at androidx.test.platform.tracing.AndroidXTracer.enableTracing(AndroidXTracer.java:57)
at androidx.test.platform.tracing.Tracing.<init>(Tracing.java:53)
at androidx.test.platform.tracing.Tracing.<clinit>(Tracing.java:49)
at androidx.test.platform.tracing.Tracing.getInstance(Tracing.java:62)
at androidx.test.espresso.base.BaseLayerModule.providesTracing(BaseLayerModule.java:190)
at androidx.test.espresso.base.BaseLayerModule_ProvidesTracingFactory.providesTracing(BaseLayerModule_ProvidesTracingFactory.java:37)
at androidx.test.espresso.base.BaseLayerModule_ProvidesTracingFactory.get(BaseLayerModule_ProvidesTracingFactory.java:29)
at androidx.test.espresso.base.BaseLayerModule_ProvidesTracingFactory.get(BaseLayerModule_ProvidesTracingFactory.java:11)
at androidx.test.espresso.core.internal.deps.dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at androidx.test.espresso.base.IdlingResourceRegistry_Factory.get(IdlingResourceRegistry_Factory.java:34)
at androidx.test.espresso.base.IdlingResourceRegistry_Factory.get(IdlingResourceRegistry_Factory.java:12)
at androidx.test.espresso.core.internal.deps.dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at androidx.test.espresso.DaggerBaseLayerComponent$BaseLayerComponentImpl.idlingResourceRegistry(DaggerBaseLayerComponent.java:275)
at androidx.test.espresso.Espresso.<clinit>(Espresso.java:64)
at androidx.test.espresso.Espresso.onView(Espresso.java:86)
at org.mozilla.reference.browser.ui.robots.NavigationToolbarRobotKt.<clinit>(NavigationToolbarRobot.kt:96)
at org.mozilla.reference.browser.ui.robots.NavigationToolbarRobotKt.navigationToolbar(Unknown Source:0)
at org.mozilla.reference.browser.ui.ThreeDotMenuTest.threeDotMenuItemsTest(ThreeDotMenuTest.kt:90)
Thanks for the report. Yes this issue i identical to #1755
The workaround for now is to explicitly add ' implementation androidx.tracing:tracing:1.1.0' to your dependencies to force AGP to use the newer version
Description
I recently ran some tests with the newly-available beta01 builds, but I'm seeing NoMethodFound crashes when running our test suite in Firebase. From what I can see, somehow Tracing is being included transitively and is somehow being force-downgraded to version 1.0.0, breaking the tests. We're running with AGP 8.4.0. Is there a way for AndroidX Test to force the usage of 1.1.0?
Expected Results
Tests run without error.
Actual Results
Crashes like below:
AndroidX Test and Android OS Versions
androidx-test-core = "1.6.0-beta01"
androidx-test-espresso = "3.6.0-beta01"
androidx-test-monitor = "1.7.0-beta01"
androidx-test-orchestrator = "1.5.0-beta01"
androidx-test-runner = "1.6.0-beta01"
androidx-test-uiautomator = "2.3.0"
This is running on the Firebase Pixel2.arm version 30 device.
Link to a public git repo demonstrating the problem:
mozilla-mobile/reference-browser@master...rvm_androidx_test
The text was updated successfully, but these errors were encountered: