For me this problem was related to the API that I was using not being deployed. For example, I used a ZSDK_API.jar
as a reference.
To fix the issue I had to right click on the project and select properties. From JAVA BUILD PATH, I had to add the API that was not being deployed. This was weird as the app was throwing MainActivity class not found and in reality the error was caused by the DiscoveryHandler class not being found.
Hopes this helps someone.