-
Notifications
You must be signed in to change notification settings - Fork 306
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
No static method forceEnableAppTracing()V in class Landroidx/tracing/Trace; or its super classes (declaration of 'androidx.tracing.Trace' #1755
Comments
I have the same issue |
@ZubairAkber I think you need to use |
Correct this is an AGP bug. The workaround is to add a "implementation androidx.tracing:tracing:1.1.0" clause |
After upgrading from Compose |
@brettchabot can this ticket be re-open or should I create a new one? |
Can you examine the output of 'gradle dependencies' and ensure androidx.tracing:tracing:1.1.0 is actually being used. It seems possible that the new version of compose is forcing an older version |
I don't why it stays to 1.0.0 despite me adding explicitely this is the change in the deps with Compose alpha03 Index: app/versions/dependencies/debugAndroidTestRuntimeClasspathDependencies.txt
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/app/versions/dependencies/debugAndroidTestRuntimeClasspathDependencies.txt b/app/versions/dependencies/debugAndroidTestRuntimeClasspathDependencies.txt
--- a/app/versions/dependencies/debugAndroidTestRuntimeClasspathDependencies.txt (revision 3ae98b83a3c464924b1487cbb9349d7e8cd1ba14)
+++ b/app/versions/dependencies/debugAndroidTestRuntimeClasspathDependencies.txt (date 1682528961281)
@@ -5,7 +5,7 @@
debugAndroidTestRuntimeClasspath - Runtime classpath of /debugAndroidTest.
+--- project :modules:library-test-android
-| +--- androidx.compose.ui:ui:1.5.0-alpha02
+| +--- androidx.compose.ui:ui:1.5.0-alpha03
| | +--- androidx.activity:activity-ktx:1.7.0 -> 1.7.1
| | | +--- androidx.activity:activity:1.7.1
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0
@@ -15,7 +15,7 @@
| | | | | \--- org.jetbrains:annotations:13.0 -> 23.0.0
| | | | +--- androidx.collection:collection:1.0.0 -> 1.2.0
| | | | | \--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | | +--- androidx.core:core:1.8.0 -> 1.11.0-alpha02
+| | | | +--- androidx.core:core:1.8.0 -> 1.11.0-alpha03
| | | | | +--- androidx.annotation:annotation:1.6.0 (*)
| | | | | +--- androidx.annotation:annotation-experimental:1.3.0
| | | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 1.8.20 (*)
@@ -77,7 +77,7 @@
| | | | | +--- androidx.versionedparcelable:versionedparcelable:1.1.1
| | | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
| | | | | | \--- androidx.collection:collection:1.0.0 -> 1.2.0 (*)
-| | | | | \--- androidx.core:core-ktx:1.11.0-alpha02 (c)
+| | | | | \--- androidx.core:core-ktx:1.11.0-alpha03 (c)
| | | | +--- androidx.lifecycle:lifecycle-runtime:2.6.1 (*)
| | | | +--- androidx.lifecycle:lifecycle-viewmodel:2.6.1
| | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
@@ -91,11 +91,11 @@
| | | | | \--- androidx.lifecycle:lifecycle-livedata-core:2.6.1 (c)
| | | | +--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1
| | | | | +--- androidx.annotation:annotation:1.0.0 -> 1.6.0 (*)
-| | | | | +--- androidx.core:core-ktx:1.2.0 -> 1.11.0-alpha02
+| | | | | +--- androidx.core:core-ktx:1.2.0 -> 1.11.0-alpha03
| | | | | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | | | | +--- androidx.core:core:1.11.0-alpha02 (*)
-| | | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | | | | \--- androidx.core:core:1.11.0-alpha02 (c)
+| | | | | | +--- androidx.core:core:1.11.0-alpha03 (*)
+| | | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | | | | \--- androidx.core:core:1.11.0-alpha03 (c)
| | | | | +--- androidx.lifecycle:lifecycle-livedata-core:2.6.1
| | | | | | +--- androidx.arch.core:core-common:2.1.0 -> 2.2.0 (*)
| | | | | | +--- androidx.arch.core:core-runtime:2.1.0 -> 2.2.0 (*)
@@ -130,7 +130,7 @@
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
| | | | +--- androidx.activity:activity-compose:1.7.1 (c)
| | | | \--- androidx.activity:activity-ktx:1.7.1 (c)
-| | | +--- androidx.core:core-ktx:1.1.0 -> 1.11.0-alpha02 (*)
+| | | +--- androidx.core:core-ktx:1.1.0 -> 1.11.0-alpha03 (*)
| | | +--- androidx.lifecycle:lifecycle-runtime-ktx:2.6.1
| | | | +--- androidx.annotation:annotation:1.0.0 -> 1.6.0 (*)
| | | | +--- androidx.lifecycle:lifecycle-runtime:2.6.1 (*)
@@ -163,80 +163,80 @@
| | | \--- androidx.activity:activity-compose:1.7.1 (c)
| | +--- androidx.annotation:annotation:1.5.0 -> 1.6.0 (*)
| | +--- androidx.autofill:autofill:1.0.0
-| | | \--- androidx.core:core:1.1.0 -> 1.11.0-alpha02 (*)
+| | | \--- androidx.core:core:1.1.0 -> 1.11.0-alpha03 (*)
| | +--- androidx.collection:collection:1.0.0 -> 1.2.0 (*)
-| | +--- androidx.compose.runtime:runtime:1.5.0-alpha02
+| | +--- androidx.compose.runtime:runtime:1.5.0-alpha03
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (*)
-| | | \--- androidx.compose.runtime:runtime-saveable:1.5.0-alpha02 (c)
-| | +--- androidx.compose.runtime:runtime-saveable:1.5.0-alpha02
+| | | \--- androidx.compose.runtime:runtime-saveable:1.5.0-alpha03 (c)
+| | +--- androidx.compose.runtime:runtime-saveable:1.5.0-alpha03
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | +--- androidx.compose.runtime:runtime:1.5.0-alpha02 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | \--- androidx.compose.runtime:runtime:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02
+| | | +--- androidx.compose.runtime:runtime:1.5.0-alpha03 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | \--- androidx.compose.runtime:runtime:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha02
-| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | | | \--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02
+| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha03
+| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | | | \--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03
| | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02
+| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03
| | | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha02 (*)
-| | | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (*)
-| | | | +--- androidx.compose.ui:ui-util:1.5.0-alpha02 (*)
-| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | | | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | | | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha02 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.10 -> 1.8.20
-| | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-text:1.5.0-alpha02
+| | | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha03 (*)
+| | | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (*)
+| | | | +--- androidx.compose.ui:ui-util:1.5.0-alpha03 (*)
+| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | | | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | | | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha03 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.20
+| | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-text:1.5.0-alpha03
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
| | | +--- androidx.collection:collection:1.0.0 -> 1.2.0 (*)
-| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.runtime:runtime-saveable:1.2.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha02 (*)
-| | | +--- androidx.core:core:1.7.0 -> 1.11.0-alpha02 (*)
-| | | +--- androidx.emoji2:emoji2:1.2.0 -> 1.4.0-beta01
+| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.runtime:runtime-saveable:1.2.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha03 (*)
+| | | +--- androidx.core:core:1.7.0 -> 1.11.0-alpha03 (*)
+| | | +--- androidx.emoji2:emoji2:1.2.0 -> 1.4.0-beta02
| | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
| | | | +--- androidx.collection:collection:1.1.0 -> 1.2.0 (*)
-| | | | +--- androidx.core:core:1.3.0 -> 1.11.0-alpha02 (*)
+| | | | +--- androidx.core:core:1.3.0 -> 1.11.0-alpha03 (*)
| | | | +--- androidx.lifecycle:lifecycle-process:2.4.1 -> 2.6.1
| | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
| | | | | +--- androidx.lifecycle:lifecycle-runtime:2.6.1 (*)
@@ -250,88 +250,89 @@
| | | | | +--- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1 (c)
| | | | | \--- androidx.lifecycle:lifecycle-viewmodel-savedstate:2.6.1 (c)
| | | | \--- androidx.startup:startup-runtime:1.0.0 -> 1.1.1 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.10 -> 1.8.20
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.20
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (*)
-| | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (*)
-| | +--- androidx.compose.ui:ui-util:1.5.0-alpha02 (*)
-| | +--- androidx.core:core:1.11.0-alpha02 (*)
+| | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (*)
+| | +--- androidx.compose.ui:ui-util:1.5.0-alpha03 (*)
+| | +--- androidx.core:core:1.11.0-alpha03 (*)
| | +--- androidx.customview:customview-poolingcontainer:1.0.0
-| | | +--- androidx.core:core-ktx:1.5.0 -> 1.11.0-alpha02 (*)
+| | | +--- androidx.core:core-ktx:1.5.0 -> 1.11.0-alpha03 (*)
| | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.6.21 -> 1.8.20 (*)
-| | +--- androidx.emoji2:emoji2:1.2.0 -> 1.4.0-beta01 (*)
+| | +--- androidx.emoji2:emoji2:1.2.0 -> 1.4.0-beta02 (*)
| | +--- androidx.lifecycle:lifecycle-runtime:2.6.1 (*)
| | +--- androidx.lifecycle:lifecycle-viewmodel:2.6.1 (*)
| | +--- androidx.profileinstaller:profileinstaller:1.3.0 (*)
| | +--- androidx.savedstate:savedstate-ktx:1.2.1 (*)
-| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.10 -> 1.8.20
+| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.20
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4 (*)
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (*)
-| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
-| +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02
+| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
+| +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03
| | +--- androidx.activity:activity:1.2.1 -> 1.7.1 (*)
| | +--- androidx.activity:activity-compose:1.3.0 -> 1.7.1
| | | +--- androidx.activity:activity-ktx:1.7.1 (*)
-| | | +--- androidx.compose.runtime:runtime:1.0.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.runtime:runtime-saveable:1.0.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui:1.0.1 -> 1.5.0-alpha02 (*)
+| | | +--- androidx.compose.runtime:runtime:1.0.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.runtime:runtime-saveable:1.0.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui:1.0.1 -> 1.5.0-alpha03 (*)
| | | +--- androidx.lifecycle:lifecycle-viewmodel:2.6.1 (*)
| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
| | | +--- androidx.activity:activity:1.7.1 (c)
| | | \--- androidx.activity:activity-ktx:1.7.1 (c)
| | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | +--- androidx.compose.runtime:runtime-saveable:1.2.1 -> 1.5.0-alpha02 (*)
-| | +--- androidx.compose.ui:ui-test:1.5.0-alpha02
+| | +--- androidx.compose.runtime:runtime-saveable:1.2.1 -> 1.5.0-alpha03 (*)
+| | +--- androidx.compose.ui:ui-test:1.5.0-alpha03
| | | +--- androidx.annotation:annotation:1.1.0 -> 1.6.0 (*)
-| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (*)
-| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha02 (*)
-| | | +--- androidx.core:core-ktx:1.1.0 -> 1.11.0-alpha02 (*)
-| | | +--- androidx.test:monitor:1.6.0 -> 1.6.1
+| | | +--- androidx.compose.runtime:runtime:1.2.1 -> 1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (*)
+| | | +--- androidx.compose.ui:ui-util:1.5.0-alpha03 (*)
+| | | +--- androidx.core:core-ktx:1.1.0 -> 1.11.0-alpha03 (*)
+| | | +--- androidx.test:monitor:1.6.0 -> 1.7.0-alpha01
| | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | | +--- androidx.test:annotation:1.0.1
-| | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | | | \--- androidx.annotation:annotation-experimental:1.1.0 -> 1.3.0 (*)
-| | | | \--- androidx.tracing:tracing:1.0.0 (*)
+| | | | +--- androidx.test:annotation:1.1.0-alpha01
+| | | | | +--- androidx.annotation:annotation-experimental:1.1.0 -> 1.3.0 (*)
+| | | | | \--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
+| | | | +--- androidx.tracing:tracing:1.1.0 -> 1.0.0 (*)
+| | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.7.22 -> 1.8.20 (*)
| | | +--- androidx.test.espresso:espresso-core:3.5.0 -> 3.5.1
| | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | | +--- androidx.test:core:1.5.0
+| | | | +--- androidx.test:core:1.5.0 -> 1.6.0-alpha01
| | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | | | +--- androidx.test:monitor:1.6.0 -> 1.6.1 (*)
-| | | | | +--- androidx.test.services:storage:1.4.2
-| | | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | | | | +--- androidx.test:monitor:1.6.0 -> 1.6.1 (*)
-| | | | | | +--- com.google.code.findbugs:jsr305:2.0.2 -> 3.0.2
-| | | | | | \--- androidx.test:annotation:1.0.1 (*)
+| | | | | +--- androidx.concurrent:concurrent-futures:1.1.0 (*)
| | | | | +--- androidx.lifecycle:lifecycle-common:2.3.1 -> 2.6.1 (*)
-| | | | | +--- androidx.tracing:tracing:1.0.0 (*)
+| | | | | +--- androidx.test.services:storage:1.5.0-alpha01
+| | | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
+| | | | | | +--- androidx.test:annotation:1.1.0-alpha01 (*)
+| | | | | | \--- androidx.test:monitor:1.7.0-alpha01 (*)
+| | | | | +--- androidx.test:annotation:1.1.0-alpha01 (*)
+| | | | | +--- androidx.test:monitor:1.7.0-alpha01 (*)
+| | | | | +--- androidx.tracing:tracing:1.1.0 -> 1.0.0 (*)
| | | | | +--- com.google.guava:listenablefuture:1.0
-| | | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 1.8.20 (*)
-| | | | | \--- androidx.concurrent:concurrent-futures:1.1.0 (*)
+| | | | | \--- org.jetbrains.kotlin:kotlin-stdlib:1.7.22 -> 1.8.20 (*)
| | | | +--- androidx.test:runner:1.5.2
| | | | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
-| | | | | +--- androidx.test:annotation:1.0.1 (*)
-| | | | | +--- androidx.test:monitor:1.6.1 (*)
-| | | | | +--- androidx.test.services:storage:1.4.2 (*)
+| | | | | +--- androidx.test:annotation:1.0.1 -> 1.1.0-alpha01 (*)
+| | | | | +--- androidx.test:monitor:1.6.1 -> 1.7.0-alpha01 (*)
+| | | | | +--- androidx.test.services:storage:1.4.2 -> 1.5.0-alpha01 (*)
| | | | | +--- androidx.tracing:tracing:1.0.0 (*)
| | | | | \--- junit:junit:4.13.2
| | | | | \--- org.hamcrest:hamcrest-core:1.3
@@ -344,9 +345,9 @@
| | | | | \--- org.hamcrest:hamcrest-library:1.3 (*)
| | | | +--- com.google.code.findbugs:jsr305:2.0.2 -> 3.0.2
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 1.8.20 (*)
-| | | | \--- androidx.test:annotation:1.0.1 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.10 -> 1.8.20
+| | | | \--- androidx.test:annotation:1.0.1 -> 1.1.0-alpha01 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.20
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (*)
| | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4
| | | | \--- org.jetbrains.kotlinx:kotlinx-coroutines-test-jvm:1.6.4
@@ -354,50 +355,51 @@
| | | | +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.6.21 -> 1.8.20 (*)
| | | | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (*)
| | | | \--- org.jetbrains.kotlin:kotlin-stdlib-common:1.6.21 -> 1.8.20
-| | | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
+| | | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
| | +--- androidx.lifecycle:lifecycle-common:2.5.1 -> 2.6.1 (*)
| | +--- androidx.lifecycle:lifecycle-runtime:2.5.1 -> 2.6.1 (*)
-| | +--- androidx.test:core:1.5.0 (*)
-| | +--- androidx.test:monitor:1.6.0 -> 1.6.1 (*)
+| | +--- androidx.test:core:1.5.0 -> 1.6.0-alpha01 (*)
+| | +--- androidx.test:monitor:1.6.0 -> 1.7.0-alpha01 (*)
| | +--- androidx.test.espresso:espresso-core:3.5.0 -> 3.5.1 (*)
| | +--- androidx.test.espresso:espresso-idling-resource:3.5.0 -> 3.5.1
-| | +--- androidx.test.ext:junit:1.1.5
-| | | +--- junit:junit:4.13.2 (*)
-| | | +--- androidx.test:core:1.5.0 (*)
-| | | +--- androidx.test:monitor:1.6.1 (*)
-| | | \--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
+| | +--- androidx.test.ext:junit:1.2.0-alpha01
+| | | +--- androidx.annotation:annotation:1.2.0 -> 1.6.0 (*)
+| | | +--- androidx.test.services:storage:1.5.0-alpha01 (*)
+| | | +--- androidx.test:core:1.6.0-alpha01 (*)
+| | | +--- androidx.test:monitor:1.7.0-alpha01 (*)
+| | | \--- junit:junit:4.13.2 (*)
| | +--- junit:junit:4.13.2 (*)
-| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.10 -> 1.8.20 (*)
-| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.10 -> 1.8.20
+| | +--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+| | +--- org.jetbrains.kotlin:kotlin-stdlib-common:1.8.20
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 (*)
| | +--- org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4 (*)
-| | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
-| +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha02
+| | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
+| +--- androidx.compose.ui:ui-test-manifest:1.5.0-alpha03
| | +--- androidx.activity:activity:1.2.1 -> 1.7.1 (*)
-| | +--- androidx.compose.ui:ui:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-text:1.5.0-alpha02 (c)
-| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha02 (c)
-| | \--- androidx.compose.ui:ui-util:1.5.0-alpha02 (c)
+| | +--- androidx.compose.ui:ui:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-test-junit4:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-geometry:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-graphics:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-text:1.5.0-alpha03 (c)
+| | +--- androidx.compose.ui:ui-unit:1.5.0-alpha03 (c)
+| | \--- androidx.compose.ui:ui-util:1.5.0-alpha03 (c)
| +--- androidx.test:core-ktx:1.5.0
-| | +--- androidx.test:core:1.5.0 (*)
+| | +--- androidx.test:core:1.5.0 -> 1.6.0-alpha01 (*)
| | +--- androidx.lifecycle:lifecycle-common:2.3.1 -> 2.6.1 (*)
| | \--- org.jetbrains.kotlin:kotlin-stdlib:1.7.10 -> 1.8.20 (*)
| +--- androidx.test.espresso:espresso-core:3.5.1 (*)
@@ -430,14 +432,14 @@
| \--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.8.20
| \--- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (*)
+--- org.jetbrains.kotlin:kotlin-parcelize-runtime:{strictly 1.8.20} -> 1.8.20 (c)
-+--- androidx.compose.ui:ui:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
++--- androidx.compose.ui:ui:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:{strictly 1.8.20} -> 1.8.20 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib:{strictly 1.8.20} -> 1.8.20 (c)
+--- org.jetbrains.kotlin:kotlin-android-extensions-runtime:{strictly 1.8.20} -> 1.8.20 (c)
+--- androidx.activity:activity:{strictly 1.7.1} -> 1.7.1 (c)
+--- androidx.activity:activity-compose:{strictly 1.7.1} -> 1.7.1 (c)
+--- androidx.annotation:annotation:{strictly 1.6.0} -> 1.6.0 (c)
-+--- androidx.compose.runtime:runtime-saveable:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
++--- androidx.compose.runtime:runtime-saveable:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
+--- androidx.lifecycle:lifecycle-common:{strictly 2.6.1} -> 2.6.1 (c)
+--- androidx.lifecycle:lifecycle-runtime:{strictly 2.6.1} -> 2.6.1 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib-common:{strictly 1.8.20} -> 1.8.20 (c)
@@ -449,23 +451,22 @@
+--- androidx.activity:activity-ktx:{strictly 1.7.1} -> 1.7.1 (c)
+--- androidx.autofill:autofill:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.collection:collection:{strictly 1.2.0} -> 1.2.0 (c)
-+--- androidx.compose.runtime:runtime:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
-+--- androidx.compose.ui:ui-geometry:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
-+--- androidx.compose.ui:ui-graphics:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
-+--- androidx.compose.ui:ui-text:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
-+--- androidx.compose.ui:ui-unit:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
-+--- androidx.compose.ui:ui-util:{strictly 1.5.0-alpha02} -> 1.5.0-alpha02 (c)
-+--- androidx.core:core:{strictly 1.11.0-alpha02} -> 1.11.0-alpha02 (c)
++--- androidx.compose.runtime:runtime:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
++--- androidx.compose.ui:ui-geometry:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
++--- androidx.compose.ui:ui-graphics:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
++--- androidx.compose.ui:ui-text:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
++--- androidx.compose.ui:ui-unit:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
++--- androidx.compose.ui:ui-util:{strictly 1.5.0-alpha03} -> 1.5.0-alpha03 (c)
++--- androidx.core:core:{strictly 1.11.0-alpha03} -> 1.11.0-alpha03 (c)
+--- androidx.customview:customview-poolingcontainer:{strictly 1.0.0} -> 1.0.0 (c)
-+--- androidx.emoji2:emoji2:{strictly 1.4.0-beta01} -> 1.4.0-beta01 (c)
++--- androidx.emoji2:emoji2:{strictly 1.4.0-beta02} -> 1.4.0-beta02 (c)
+--- androidx.lifecycle:lifecycle-viewmodel:{strictly 2.6.1} -> 2.6.1 (c)
+--- androidx.profileinstaller:profileinstaller:{strictly 1.3.0} -> 1.3.0 (c)
+--- androidx.savedstate:savedstate-ktx:{strictly 1.2.1} -> 1.2.1 (c)
+--- org.jetbrains.kotlinx:kotlinx-coroutines-android:{strictly 1.6.4} -> 1.6.4 (c)
+--- org.jetbrains.kotlin:kotlin-stdlib-jdk7:{strictly 1.8.20} -> 1.8.20 (c)
+--- org.jetbrains:annotations:{strictly 23.0.0} -> 23.0.0 (c)
-+--- androidx.core:core-ktx:{strictly 1.11.0-alpha02} -> 1.11.0-alpha02 (c)
-+--- androidx.concurrent:concurrent-futures:{strictly 1.1.0} -> 1.1.0 (c)
++--- androidx.core:core-ktx:{strictly 1.11.0-alpha03} -> 1.11.0-alpha03 (c)
+--- androidx.lifecycle:lifecycle-viewmodel-savedstate:{strictly 2.6.1} -> 2.6.1 (c)
+--- androidx.savedstate:savedstate:{strictly 1.2.1} -> 1.2.1 (c)
+--- androidx.annotation:annotation-jvm:{strictly 1.6.0} -> 1.6.0 (c)
@@ -476,6 +477,7 @@
+--- com.squareup.okio:okio:{strictly 3.3.0} -> 3.3.0 (c)
+--- androidx.lifecycle:lifecycle-runtime-ktx:{strictly 2.6.1} -> 2.6.1 (c)
+--- androidx.lifecycle:lifecycle-viewmodel-ktx:{strictly 2.6.1} -> 2.6.1 (c)
++--- androidx.concurrent:concurrent-futures:{strictly 1.1.0} -> 1.1.0 (c)
+--- androidx.interpolator:interpolator:{strictly 1.0.0} -> 1.0.0 (c)
+--- androidx.versionedparcelable:versionedparcelable:{strictly 1.1.1} -> 1.1.1 (c)
+--- androidx.lifecycle:lifecycle-process:{strictly 2.6.1} -> 2.6.1 (c) |
Can you provide the output of 'gradle dependencies' for the implementation classpath |
Do you mean the compile classpath? Can't fine any implementation classpath. This is the full log: dep.txt |
sorry I'm not super familiar with gradle. I suspect you want to look at debugRuntimeClasspath. It doesn't look to me like 'implementation androidx.tracing:tracing:1.1.0.' is being explicitly specified. |
Is it something that it's needed at runtime? I added it to the test implementation because I assumed it's required only for espresso tests. |
Confirmed that using Should I open a ticket to the compose issue tracker to request them to add this new version as dependency? |
You need specifically 'implementation androidx.tracing:tracing:1.1.0'. See https://github.com/android/testing-samples/blob/a76330ba879cd671bf31012c79a9321e87097e64/ui/espresso/ScreenshotSample/app/build.gradle#L60 |
sorry our messages got crossed. Asking compose to upgrade to androidx.tracing:tracing:1.1.0 doesn't seem totally unreasonable to me, but note its just a workaround. The root cause is AGP silently downgrading to older versions in test scope. |
I see, is this already known to the AGP developers or should be reported to some tracker? I just would like to have a fix upstream so that I don't have to manually drag this dependency. |
Yes there is a bug in google's internal tracker. |
OK, so I avoid reporting anything. Thank you for the help and clarification. |
* Updates to Compose 1.5.0-alpha04 * Fix androidTest errors android/android-test#1755 (comment)
@brettchabot can google make that bug report public so that we can follow its progress? |
I see this issue is closed yet I'm still running into this issue myself and bumping the However, doesn't putting it in I understand this is a bug and the workaround is just to work around a bug, but is there any place to properly track this issue given this GitHub issue is closed so I can make sure to be notified when it is fixed and remove the workaround as soon as it is no longer needed? |
Philosophically I agree that putting test specific workarounds in production code is not ideal, but I'm struggling to see a large negative impact of putting this workaround in place. All this workaround is doing is making sure your project is using a newer version of androidx.tracing. Am I missing something? I've asked if the AGP bug can be made public. Alternatively feel free to file a new one https://issuetracker.google.com/issues/new?component=192708&template=840533 |
I'm not sure whats going on here but I am suddenly getting the error:
When I try to upgrade tracing to 1.1.0 gradle does not let me. I get an error saying one of my dependencies has a dependency on |
Is the output of './gradlew dependencies' helpful to track that down? |
An alternative diagnostic tool worth looking at is
|
Thank you both for the suggestions. I eventually figured out that I just needed do what TheLastProject did above, adding Unfortunately I then ran in to a similar issue with a different class. But this might be a different issue, and I am just beginning to investigate it.
|
That last issue looks like #413 which should have been fixed long ago. If you're seeing that using new androidx.test versions please file a new issue |
AGP has a bug which mistakenly downgrades this to an old version in test scope which then causes the tests to fail due to a missing method. As mentioned in android/android-test#1755, this can be worked around by explicitly specifying it as an implementation dependency.
AGP has a bug which mistakenly downgrades this to an old version in test scope which then causes the tests to fail due to a missing method. As mentioned in android/android-test#1755, this can be worked around by explicitly specifying it as an implementation dependency.
Finally I think I have discovered the real issue I was having: I was adding both |
…tracing/Trace" in RestExplorerTest See android/android-test#1755
…d being force-downgraded. r=android-reviewers,mcarare See android/android-test#1755 Differential Revision: https://phabricator.services.mozilla.com/D215286
…d being force-downgraded. r=android-reviewers,mcarare See android/android-test#1755 Differential Revision: https://phabricator.services.mozilla.com/D215286
…d being force-downgraded. r=android-reviewers,mcarare See android/android-test#1755 Differential Revision: https://phabricator.services.mozilla.com/D215286
Description
I was facing #1642 issue, to resolve this i just move to 3.6.0-alpha01 then it starts giving me the error i have mentioned below, i have tried adding androidx.tracing:tracing:1.0.0 but this doesn't resolve the issue
Actual Results
No static method forceEnableAppTracing()V in class Landroidx/tracing/Trace; or its super classes (declaration of 'androidx.tracing.Trace' appears in /data/app/~~7vP7f0zShEgpGBRHAXwe8w==/com.package.name-uwQ1nREqMw5kVIkHPLTwLQ==/base.apk)
at androidx.test.platform.tracing.AndroidXTracer.enableTracing(AndroidXTracer.java:57)
at androidx.test.platform.tracing.Tracing.(Tracing.java:54)
at androidx.test.platform.tracing.Tracing.(Tracing.java:48)
at androidx.test.platform.tracing.Tracing.getInstance(Tracing.java:64)
at androidx.test.espresso.base.BaseLayerModule.providesTracing(BaseLayerModule.java:209)
at androidx.test.espresso.base.BaseLayerModule_ProvidesTracingFactory.providesTracing(BaseLayerModule_ProvidesTracingFactory.java:31)
at androidx.test.espresso.base.BaseLayerModule_ProvidesTracingFactory.get(BaseLayerModule_ProvidesTracingFactory.java:23)
at androidx.test.espresso.base.BaseLayerModule_ProvidesTracingFactory.get(BaseLayerModule_ProvidesTracingFactory.java:9)
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:28)
at androidx.test.espresso.base.IdlingResourceRegistry_Factory.get(IdlingResourceRegistry_Factory.java:10)
at androidx.test.espresso.core.internal.deps.dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at androidx.test.espresso.DaggerBaseLayerComponent.idlingResourceRegistry(DaggerBaseLayerComponent.java:180)
at androidx.test.espresso.Espresso.(Espresso.java:67)
at androidx.test.espresso.Espresso.onView(Espresso.java:89)
AndroidX Test and Android OS Versions
Link to a public git repo demonstrating the problem:
The text was updated successfully, but these errors were encountered: