Recommended solutions based on your search
You need to add httpcore to your dependencies. Try adding version 4.3 or further.
App tries to load in a class through its string name using forName method in class Class, findSystemClass method in class ClassLoader, loadClass method in class ClassLoader but no definition for the class with the specified name could be found.
Solutions on the web