File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
java/androidx/test/platform/tracing Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
** Bug Fixes**
8
8
9
+ * Catch and log NoSuchMethodError on forceEnableAppTracing calls
10
+
9
11
** New Features**
10
12
11
13
** Breaking Changes**
Original file line number Diff line number Diff line change @@ -59,6 +59,15 @@ public AndroidXTracer enableTracing() {
59
59
// The AndroidX call can fail if reflection is not allowed.
60
60
// We want to log the error yet we should not break any test in this case.
61
61
Log .e (TAG , "enableTracing failed" , e );
62
+ } catch (NoSuchMethodError e ) {
63
+ // This can occur if an androidx.tracing < 1.1.0 is put on classpath instead.
64
+ // See http://issuetracker.google.com/349628366).
65
+ // We want to log the error yet we should not break any test in this case.
66
+ Log .e (
67
+ TAG ,
68
+ "enableTracing failed. "
69
+ + "You may need to upgrade your androidx.tracing:tracing version" ,
70
+ e );
62
71
}
63
72
return this ;
64
73
}
You can’t perform that action at this time.
0 commit comments