当我添加implementation 'com.google.firebase:firebase-perf-ktx:19.1.0'
时,我无法启动espresso有关仪器测试的测试(“app”方案构建正常)。 当我尝试启动Espresso测试时,我遇到
Test running failed: Process crashed.
java.lang.NoSuchMethodError: No static method registerDefaultInstance(Ljava/lang/Class;Lcom/google/protobuf/GeneratedMessageLite;)V in class Lcom/google/protobuf/GeneratedMessageLite
但是如果我删除implementation 'com.google.firebase:firebase-perf-ktx:19.1.0'
,一切都能正常工作。如何保留Firebase Performance库和Espresso仪表测试?