0
에스프레소 테스트를 실행했습니다. 그리고 불행히도 일부 무작위 변경 후 모든 내 테스트가 실패합니다. 그리고 나는 모든이 오류 메시지를 본 적이 없다 :관련없는 변경 후에도 에스프레소 테스트가 실패했습니다
오류 메시지 : - 여기
java.lang.NoSuchMethodError: No interface method trackUsage(Ljava/lang/String;)V in class Landroid/support/test/internal/runner/tracker/UsageTracker; or its super classes (declaration of 'android.support.test.internal.runner.tracker.UsageTracker' appears in /data/app/mu.organyze.test-1/base.apk)
내 의존성이다 : -
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
testCompile 'junit:junit:4.12'
testCompile 'com.android.support.test:rules:1.0.1'
testCompile 'com.google.dexmaker:dexmaker:1.2'
testCompile 'org.mockito:mockito-core:2.12.0'
testCompile 'org.mockito:mockito-android:2.12.0'
androidTestCompile 'com.android.support:support-annotations:26.1.0'
androidTestCompile 'com.android.support.test:runner:1.0.1'
androidTestCompile 'com.android.support.test:rules:1.0.1'
androidTestCompile 'org.mockito:mockito-core:2.12.0'
androidTestCompile 'com.google.dexmaker:dexmaker:1.2'
androidTestCompile 'com.google.dexmaker:dexmaker-mockito:1.2'
androidTestUtil 'com.android.support.test:orchestrator:1.0.1'
androidTestCompile 'org.hamcrest:hamcrest-integration:1.3'
}
이것은 도움이 될 수 있습니다 [Here] (https://stackoverflow.com/questions/39841341/java-lang-nosuchmethoderror-no-interface-method-ontransitiontoidlev) –