Explicitly catches ClassNotFoundException and NoSuchMethodError errors, which happen when the class or constructor cannot be found by JNI.
These errors can occur when the user puts the class in the wrong namespace, forgets to implement a default-constructor, or when it gets stripped by ProGuard in release builds. In those cases, Nitro will throw with a nicer error message for the user.
Explicitly catches
ClassNotFoundException
andNoSuchMethodError
errors, which happen when the class or constructor cannot be found by JNI.These errors can occur when the user puts the class in the wrong namespace, forgets to implement a default-constructor, or when it gets stripped by ProGuard in release builds. In those cases, Nitro will throw with a nicer error message for the user.