2017-12-09 34 views
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' 
    } 
+0

これはあなた[ここ](https://stackoverflow.com/questions/39841341/java-lang-nosuchmethoderror-no-interface-method-ontransitiontoidlev)に役立つかもしれません。 –

答えて

0

ただ、依存関係にこれを追加します -

エラーメッセージ:そして、私はすべてこのエラーメッセージを見たことがありません

com.android.support.test.espresso:エスプレッソコア:3.0.0

関連する問題