Then Google checked and found that it was the problem with the version, and then reduced the version from 4.13 2 to 4.12 still can’t
Check Google again to change to version 4.10, or import hamcrest-core-1.3 jar
The official website says:
Includes the Hamcrest classes. The simple all-in-one solution to get started quickly. Starting with version 4.11, Hamcrest is no longer included in this jar.
So the solution is:
1. JUnit reduced version 4.10
2. Import hamcrest-core-1.3 jar
Similar Posts:
- [Solved] Junit4 unit test error: Method ‘initializationError’ not found. Opening the test class.
- java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing
- IDEA error: javax/xml/bind/DatatypeConverter [How to Solve]
- [How to Solve] java.lang.IncompatibleClassChangeError
- [Solved] Android Studio Error: Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
- Ubuntu 14.04 UNK : How to Install Pepper Flash Player For Chromiu
- [Solved] pytorchImportError: numpy.core.multiarray failed to import
- How to use htmltestrunner.py to report importerror: no module named ‘stringio’ in Python 3
- nvcc fatal : Cannot find compiler ‘cl.exe’ in PATH [How to Solve]
- Hibernate Exception: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException