App Crashes When Creating A New Class From Endpoint Library
My app crashes the moment it creates a UserData, which is a class inside an endpoint library in my project. Can anyone help me figure out why? The line that the app crashes on is U
Solution 1:
The line java.lang.NoClassDefFoundError: com.indigohate.userdataendpoint.model.UserData
indicates that java wasnt able to find the class you want to create with new UserData();
(or an underlying class which is created inside of UserData), which might be caused by a problem with your project setup.
If UserData.java is in another Project or a library.jar, please check if it is correctly imported. In Eclipse: Right click your project -> preferences -> Java Build Path -> Order and Export -> Be sure that "Android Private Libraries" and "Android dependencies" is checked. In 9 of 10 cases, this is the problem with the setup since revision 22
Post a Comment for "App Crashes When Creating A New Class From Endpoint Library"