Coder Social home page Coder Social logo

Cannot execute test about dexopener HOT 4 CLOSED

tmurakami avatar tmurakami commented on June 14, 2024
Cannot execute test

from dexopener.

Comments (4)

tmurakami avatar tmurakami commented on June 14, 2024

Is there any error message in logcat?

from dexopener.

vicpinm avatar vicpinm commented on June 14, 2024

Yes, I have this exception:

java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo{events.symposium.app.org.test/com.github.tmurakami.dexopener.DexOpenerAndroidJUnitRunner}: java.lang.ClassNotFoundException: Didn't find class "com.github.tmurakami.dexopener.DexOpenerAndroidJUnitRunner" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /system/vendor/lib64]]
                                                                          at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5973)
                                                                          at android.app.ActivityThread.-wrap1(Unknown Source:0)
                                                                          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1756)
                                                                          at android.os.Handler.dispatchMessage(Handler.java:105)
                                                                          at android.os.Looper.loop(Looper.java:164)
                                                                          at android.app.ActivityThread.main(ActivityThread.java:6809)
                                                                          at java.lang.reflect.Method.invoke(Native Method)
                                                                          at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
                                                                          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
                                                                       Caused by: java.lang.ClassNotFoundException: Didn't find class "com.github.tmurakami.dexopener.DexOpenerAndroidJUnitRunner" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /system/vendor/lib64]]
                                                                          at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
                                                                          at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
                                                                          at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

from dexopener.

tmurakami avatar tmurakami commented on June 14, 2024

It seems that DexOpener is not incorporated in your test application.

Does the same error occur when running ./gradlew connectedAndroidTest?
And could you share your build.gradle?

from dexopener.

vicpinm avatar vicpinm commented on June 14, 2024

You are right. I have restarted Android studio, and performed a clean build. Now it's working, thanks!

from dexopener.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.