NoClassDefFoundError
If you’re getting java.lang.NoClassDefFoundError
inside com.android.internal.os.ZygoteInit.main
, this usually means the native library couldn’t be loaded. A common reason for this is either an invalid or too aggressive ProGuard configuration, or stale caches.
Clean all intermediate build files (in Android Studio: Build > Clean Project) and rebuild your app to determine whether or not this is the case.