Closed imbirovsky closed 4 years ago
The launch of tests on API above 21 is successful.
@imbirovsky, it will be really helpful to have full stacktrace of Test running failed: Instrumentation run failed due to 'java.lang.NoClassDefFoundError'
or full device logs of the failed run.
Unfortunately, I don't know how to get the full stacktrace. When launching through the terminal, I see such an error:
$ adb shell am instrument -w -r -e debug false -e class 'qq.xxx.zzz.fullTests.tests.StatementsTests' qq.xxx.zzz.test/io.qameta.allure.espresso.AllureAndroidRunner
INSTRUMENTATION_RESULT: shortMsg=java.lang.NoClassDefFoundError
INSTRUMENTATION_RESULT: longMsg=java.lang.NoClassDefFoundError: io.qameta.allure.android.io.FileSystemResultsReader
INSTRUMENTATION_CODE: 0
Seems you need to use in build.gradle:
testInstrumentationRunner "io.qameta.allure.espresso.MultiDexAllureAndroidRunner"
Seems you need to use in build.gradle:
testInstrumentationRunner "io.qameta.allure.espresso.MultiDexAllureAndroidRunner"
Thanks a lot!
Hello. I really look forward to your help. When Allure is turned off, the tests are successful. But not with Allure.
build.gradle:
build.gradle (module):
I tried it with
<uses-sdk tools:overrideLibrary="android_libs.ub_uiautomator"/>
and without<uses-sdk tools:overrideLibrary="android_libs.ub_uiautomator"/>
in AndroidManifest.xmlI really look forward to your help 😞