java.lang.NoClassDefFoundError: android/content/Context

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via by Unknown author, 1 year ago
via Coderanch by Raaja Gotluru, 1 year ago
via Google Groups by Martin Backschat, 2 years ago
via GitHub by abrahamks
, 2 years ago
via Stack Overflow by Ahmed Al-hajri
, 1 year ago
via Stack Overflow by Roberto Ambrosio
, 9 months ago
java.lang.ClassNotFoundException: android.content.Context
at Method)
at java.lang.ClassLoader.loadClass(
at sun.misc.Launcher$AppClassLoader.loadClass(
at java.lang.ClassLoader.loadClass(
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(
at java.lang.Class.getConstructors(
at org.junit.runners.model.TestClass.(
at org.junit.runners.ParentRunner.createTestClass(
at org.junit.runners.ParentRunner.(
at org.junit.runners.BlockJUnit4ClassRunner.(
at org.robolectric.RobolectricTestRunner.(
at net.core.meta.StudioRobolectricRunner.(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 2 months ago
Once, 2 months ago
5 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.