Using Android Studio, I recently created a library from a project I am working on. Since including it on the new project, every single time I reference the library's methods it throws a java.lang.NoClassDefFoundError.
I CAN ctrl + B and visibly see my own source code so I know it is there and visible and not obfuscated.
Whenever I re-run the app, I see this in the logcat - "Rejecting re-init on previously-failed class java.lang.Class".
I have spent the better part of 2 days trying to research and get this to work with no avail. Does anyone know why I would be receiving this error if it is my own library I have included?
I have already read through the following Stack Overflow links (without success) so please do not include these as an answer / solution:
- How do I resolve this Java Class not found exception?
- Unity Android with AppCompat Rejecting re-init on previously-failed class java.lang.Class
- NoClassDefFoundError - Rejecting re-init on previously-failed class
- NoClassDefFoundError on external library project for Android
- Android library project "java.lang.NoClassDefFoundError"
- Android Activity ClassNotFoundException - tried everything
- java.lang.NoClassDefFoundError when use my own library
Thank you for your time.