skip to Main Content

Android Studio – Caused by: com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)

When launching an activity my app crashes at getEncryptedSharedPrefs: if(getEncryptedSharedPrefs().getString("pinSettingsLogin", "")!!.isEmpty()){ getEncryptedSharedPrefs().edit() .putString("pinSettingsLogin" , "0000") .apply() } With this error: Caused by: com.google.crypto.tink.shaded.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero). Weird thing is, this if statement works on Android 10…

VIEW QUESTION
Back To Top
Search