java.lang.NoClassDefFoundError

sample/NewsActivity

Samebug tips1

You need to setup a GlideModule before use Glide.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web2751

  • Stack trace

    • java.lang.NoClassDefFoundError: sample/NewsActivity at sample.LoginActivity.launchNews(LoginActivity.java:73) at sample.LoginActivity.access$200(LoginActivity.java:17) at sample.LoginActivity$1.onClick(LoginActivity.java:41) at android.view.View.performClick(View.java:4240) at android.view.View$PerformClick.run(View.java:17721) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:461) at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:402) at android.support.test.espresso.base.UiControllerImpl.injectMotionEvent(UiControllerImpl.java:226) at android.support.test.espresso.action.MotionEvents.sendUp(MotionEvents.java:135) at android.support.test.espresso.action.MotionEvents.sendUp(MotionEvents.java:118) at android.support.test.espresso.action.Tap.sendSingleTap(Tap.java:135) at android.support.test.espresso.action.Tap.access$100(Tap.java:35) at android.support.test.espresso.action.Tap$1.sendTap(Tap.java:40) at android.support.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:98) at android.support.test.espresso.ViewInteraction$1.run(ViewInteraction.java:144) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:390) at java.util.concurrent.FutureTask.run(FutureTask.java:234) at android.os.Handler.handleCallback(Handler.java:730) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:137) at android.app.ActivityThread.main(ActivityThread.java:5103) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:525) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) at dalvik.system.NativeStart.main(Native Method) Caused by: java.lang.ClassNotFoundException: Didn't find class "sample.NewsActivity" on path: DexPathList[[zip file "/system/framework/android.test.runner.jar", zip file "/data/app/sample.test-2.apk", zip file "/data/app/sample-1.apk"],nativeLibraryDirectories=[/data/app-lib/sample.test-2, /data/app-lib/sample-1, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:501) at java.lang.ClassLoader.loadClass(ClassLoader.java:461) ... 28 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Andreas HäberAndreas Häber
    Once,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Saravana Kumar ChinnarajSaravana Kumar Chinnaraj
    4 times, last one
    Unknown visitor
    Unknown visitorOnce,
    158 more bugmates