: android/app/Application : android/app/ApplicationĪt 1(Native Method)Īt (ClassLoader.java:763)Īt (SecureClassLoader.java:142)Īt (URLClassLoader.java:467)Īt $100(URLClassLoader.java:73)Īt $1.run(URLClassLoader.java:368)Īt $1.run(URLClassLoader.java:362)Īt (Native Method)Īt (URLClassLoader.java:361)Īt (ClassLoader.java:424) Similar errors for referencesĪll those errors may cause by the same issue. Then rebuild project in Android studio and re-run test, should be good now. Set JDK Location to output of /urs/libexec/java_home.Click SDK Location in left side navigation.Then set this path in Android Studio for current project by following steps: Library/Java/JavaVirtualMachines/jdk-10.0.1.jdk/Contents/Home Just use following command to run junit test in gradle command line: Tried run test with gradle and there is no error. This error is weird since the error is not 100% reproduce-able. : android/content/ContextĪt 0(Native Method)Īt (Class.java:2615)Īt (Class.java:1860)Īt .getDeclaredMethods(MethodSorter.java:54)Ĭaused by: : Īt (URLClassLoader.java:382)Īt (ClassLoader.java:419)Īt $AppClassLoader.loadClass(Launcher.java:352)Īt (ClassLoader.java:352) Have a Android project run junit test fine, suddenly it failed to run unit test with following error: xxxxTest
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |