the app was working fine in testing but unforsunatly stoped
Process: com.cityart.e_health_doctor, PID: 12453
E/AndroidRuntime(12453): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cityart.e_health_doctor/com.payment.paymentsdk.PaymentSdkActivity}: java.security.KeyStoreException: the master key android-keystore://_androidx_security_masterkey exists but is unusable
E/AndroidRuntime(12453): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
E/AndroidRuntime(12453): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
E/AndroidRuntime(12453): at android.app.ActivityThread.-wrap11(Unknown Source:0)
E/AndroidRuntime(12453): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
E/AndroidRuntime(12453): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(12453): at android.os.Looper.loop(Looper.java:164)
E/AndroidRuntime(12453): at android.app.ActivityThread.main(ActivityThread.java:6494)
E/AndroidRuntime(12453): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(12453): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/AndroidRuntime(12453): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
E/AndroidRuntime(12453): Caused by: java.security.KeyStoreException: the master key android-keystore://_androidx_security_masterkey exists but is unusable
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewMasterKey(AndroidKeysetManager.java:275)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:236)
E/AndroidRuntime(12453): at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:123)
E/AndroidRuntime(12453): at c0.a.(Unknown Source:53)
E/AndroidRuntime(12453): at k0.a.(Unknown Source:20)
E/AndroidRuntime(12453): at com.payment.paymentsdk.b.(Unknown Source:19)
E/AndroidRuntime(12453): at com.payment.paymentsdk.c.create(Unknown Source:19)
E/AndroidRuntime(12453): at androidx.lifecycle.ViewModelProvider$Factory$-CC.$default$create(ViewModelProvider.kt:83)
E/AndroidRuntime(12453): at com.payment.paymentsdk.c.create(Unknown Source:0)
E/AndroidRuntime(12453): at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:187)
E/AndroidRuntime(12453): at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:153)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a$f.a(Unknown Source:38)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a$f.invoke(Unknown Source:0)
E/AndroidRuntime(12453): at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a.f(Unknown Source:2)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a.onCreateView(Unknown Source:5)
E/AndroidRuntime(12453): at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3104)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1890)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1808)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1751)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2976)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2886)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:263)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:351)
E/AndroidRuntime(12453): at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
E/AndroidRuntime(12453): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1334)
E/AndroidRuntime(12453): at android.app.Activity.performStart(Activity.java:7029)
E/AndroidRuntime(12453): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2741)
E/AndroidRuntime(12453): ... 9 more
E/AndroidRuntime(12453): Caused by: java.security.UnrecoverableKeyException: Failed to obtain information about key
E/AndroidRuntime(12453): at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreSecretKeyFromKeystore(AndroidKeyStoreProvider.java:282)
E/AndroidRuntime(12453): at android.security.keystore.AndroidKeyStoreSpi.engineGetKey(AndroidKeyStoreSpi.java:98)
E/AndroidRuntime(12453): at java.security.KeyStore.getKey(KeyStore.java:1062)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.(AndroidKeystoreAesGcm.java:58)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeystoreKmsClient.getAead(AndroidKeystoreKmsClient.java:164)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewMasterKey(AndroidKeysetManager.java:267)
E/AndroidRuntime(12453): ... 38 more
E/AndroidRuntime(12453): Caused by: android.security.KeyStoreException: Unknown error
E/AndroidRuntime(12453): at android.security.KeyStore.getKeyStoreException(KeyStore.java:697)
E/AndroidRuntime(12453): at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreSecretKeyFromKeystore(AndroidKeyStoreProvider.java:283)
E/AndroidRuntime(12453): ... 43 more
the app was working fine in testing but unforsunatly stoped Process: com.cityart.e_health_doctor, PID: 12453 E/AndroidRuntime(12453): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.cityart.e_health_doctor/com.payment.paymentsdk.PaymentSdkActivity}: java.security.KeyStoreException: the master key android-keystore://_androidx_security_masterkey exists but is unusable E/AndroidRuntime(12453): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778) E/AndroidRuntime(12453): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856) E/AndroidRuntime(12453): at android.app.ActivityThread.-wrap11(Unknown Source:0) E/AndroidRuntime(12453): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589) E/AndroidRuntime(12453): at android.os.Handler.dispatchMessage(Handler.java:106) E/AndroidRuntime(12453): at android.os.Looper.loop(Looper.java:164) E/AndroidRuntime(12453): at android.app.ActivityThread.main(ActivityThread.java:6494) E/AndroidRuntime(12453): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(12453): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438) E/AndroidRuntime(12453): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807) E/AndroidRuntime(12453): Caused by: java.security.KeyStoreException: the master key android-keystore://_androidx_security_masterkey exists but is unusable E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewMasterKey(AndroidKeysetManager.java:275) E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:236) E/AndroidRuntime(12453): at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:123) E/AndroidRuntime(12453): at c0.a.(Unknown Source:53)
E/AndroidRuntime(12453): at k0.a.(Unknown Source:20)
E/AndroidRuntime(12453): at com.payment.paymentsdk.b.(Unknown Source:19)
E/AndroidRuntime(12453): at com.payment.paymentsdk.c.create(Unknown Source:19)
E/AndroidRuntime(12453): at androidx.lifecycle.ViewModelProvider$Factory$-CC.$default$create(ViewModelProvider.kt:83)
E/AndroidRuntime(12453): at com.payment.paymentsdk.c.create(Unknown Source:0)
E/AndroidRuntime(12453): at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:187)
E/AndroidRuntime(12453): at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.kt:153)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a$f.a(Unknown Source:38)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a$f.invoke(Unknown Source:0)
E/AndroidRuntime(12453): at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a.f(Unknown Source:2)
E/AndroidRuntime(12453): at com.payment.paymentsdk.a.onCreateView(Unknown Source:5)
E/AndroidRuntime(12453): at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3104)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1890)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1808)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1751)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2976)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentManager.dispatchActivityCreated(FragmentManager.java:2886)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:263)
E/AndroidRuntime(12453): at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:351)
E/AndroidRuntime(12453): at androidx.appcompat.app.AppCompatActivity.onStart(AppCompatActivity.java:246)
E/AndroidRuntime(12453): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1334)
E/AndroidRuntime(12453): at android.app.Activity.performStart(Activity.java:7029)
E/AndroidRuntime(12453): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2741)
E/AndroidRuntime(12453): ... 9 more
E/AndroidRuntime(12453): Caused by: java.security.UnrecoverableKeyException: Failed to obtain information about key
E/AndroidRuntime(12453): at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreSecretKeyFromKeystore(AndroidKeyStoreProvider.java:282)
E/AndroidRuntime(12453): at android.security.keystore.AndroidKeyStoreSpi.engineGetKey(AndroidKeyStoreSpi.java:98)
E/AndroidRuntime(12453): at java.security.KeyStore.getKey(KeyStore.java:1062)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeystoreAesGcm.(AndroidKeystoreAesGcm.java:58)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeystoreKmsClient.getAead(AndroidKeystoreKmsClient.java:164)
E/AndroidRuntime(12453): at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.readOrGenerateNewMasterKey(AndroidKeysetManager.java:267)
E/AndroidRuntime(12453): ... 38 more
E/AndroidRuntime(12453): Caused by: android.security.KeyStoreException: Unknown error
E/AndroidRuntime(12453): at android.security.KeyStore.getKeyStoreException(KeyStore.java:697)
E/AndroidRuntime(12453): at android.security.keystore.AndroidKeyStoreProvider.loadAndroidKeyStoreSecretKeyFromKeystore(AndroidKeyStoreProvider.java:283)
E/AndroidRuntime(12453): ... 43 more