尝试运行android espresso测试时NoClassDefFoundError

时间:2018-04-09 21:29:05

标签: android android-espresso

我添加了依赖项,它始终与Dim currentrow As Long Private Sub CommandButton2_Click() Dim lastrow Dim myfname As String lastrow = Sheet11.Range("A" & Rows.Count).End(xlUp).row myfname = Me.Reg8.Value For currentrow = 2 To lastrow If Cells(currentrow, 1).Text = myfname Then Cells(currentrow, 68).Value = Me.Reg10.Value Cells(currentrow, 69).Value = Me.Reg11.Value Cells(currentrow, 10).Value = Me.Reg5.Value Cells(currentrow, 9).Value = Me.Reg6.Value Cells(currentrow, 70).Value = Me.Reg7.Value End If Next If MsgBox("Information has" & vbNewLine & "been updated") = vbOK Then Unload Me Sheet1.Select End If End Sub

崩溃
java.lang.NoClassDefFoundError: android.support.test.espresso.base.BaseLayerModule_ProvideFailureHanderFactory

Espresso 3.0.1也会出现同样的问题。堆栈跟踪:

androidTestCompile 'com.android.support.test:runner:0.5'
androidTestCompile 'com.android.support.test:rules:0.5'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
    exclude group: 'com.android.support', module: 'support-v4'
    exclude group: 'com.google.code.findbugs'
}

0 个答案:

没有答案
相关问题