After change emulator Android version to Android 12 navigation stopped work with error below.
Code: Select all
Caused by: java.lang.VerifyError: Rejecting class com.ptvag.navigation.sdk.Observer that attempts to sub-type erroneous class com.ptvag.navigation.sdk.NativeObject (declaration of 'com.ptvag.navigation.sdk.Observer' appears in /data/app/~~2JRZq-Jo22ykfxCWRnxLhw==/pl.softprojekt.fp4mtransport-caALIZOcei44IModTZ_AmA==/base.apk)
at void pl.softprojekt.fp4mtransport.gui.navigation.NavigationActivity.<init>() (NavigationActivity.kt:88)
at java.lang.Object java.lang.reflect.Constructor.newInstance0(java.lang.Object[]) (Constructor.java:-2)
at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:343)
at androidx.fragment.app.Fragment androidx.fragment.app.Fragment.instantiate(android.content.Context, java.lang.String, android.os.Bundle) (Fragment.java:613)
at androidx.fragment.app.Fragment androidx.fragment.app.FragmentContainer.instantiate(android.content.Context, java.lang.String, android.os.Bundle) (FragmentContainer.java:57)
at androidx.fragment.app.Fragment androidx.fragment.app.FragmentManager$3.instantiate(java.lang.ClassLoader, java.lang.String) (FragmentManager.java:483)
at androidx.fragment.app.Fragment androidx.navigation.fragment.FragmentNavigator.instantiateFragment(android.content.Context, androidx.fragment.app.FragmentManager, java.lang.String, android.os.Bundle) (FragmentNavigator.java:132)