Your data. Anywhere you go.

New Relic for iOS or Android


Download on the App Store    Android App on Google play


New Relic Insights App for iOS


Download on the App Store


Learn more

Close icon

Crash in test.apk (TestRunner) using Espresso using Android 5.21.3

android

#1
 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.newrelic.agent.android.api.v2.TraceFieldInterface" on path: DexPathList[[zip file "/system/framework/android.test.mock.jar", zip file "/system/framework/android.test.runner.jar", zip file "/data/app/com.application.android.test-n-0T_yTnfnnXGIDhG1YrCA==/base.apk"],nativeLibraryDirectories=[/data/app/com.application.android.test-n-0T_yTnfnnXGIDhG1YrCA==/lib/x86, /system/lib, /vendor/lib]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:125)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    		... 15 more

When my emulator starts up to run Espresso tests, I get a crash in the Test APK , not the APK under test. This is highly unusual because we aren’t using NewRelic at all in the tests. Any information on how to debug this would be awesome.


#2

Hi Mark,

I see you have already opened a support ticket with us regarding this issue. We look forward to working with you on the issue there.