skip to Main Content

Android Studio – Delegate runner androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner for AndroidJUnit4 could not be found

I've written the code to test the SQL commands. But when I right-clicked my class(such as testInsert() ), the "Run" reported the error: "java.lang.RuntimeException: Delegate runner androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner for AndroidJUnit4 could not be found.". The version of AS is 4.2.2. After…

VIEW QUESTION

NoClassDefFoundError on running unit test after updating Android Studio to ArticFox | 2020.3.1

Test Events were not Received Error: NoClassDefFoundError on running unit test after updating android studio to ArticFox | 2020.3.1. Below is the full error: java.lang.NoClassDefFoundError: jdk/internal/reflect/GeneratedSerializationConstructorAccessor1 at jdk.internal.reflect.GeneratedSerializationConstructorAccessor1.newInstance(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at java.base/java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:1092) at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2180) at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) at java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493) at…

VIEW QUESTION
Back To Top
Search