Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Conflict with Gauva 29.0-android #356

Closed
ZacSweers opened this issue May 3, 2020 · 5 comments
Closed

Conflict with Gauva 29.0-android #356

ZacSweers opened this issue May 3, 2020 · 5 comments

Comments

@ZacSweers
Copy link

When we try to update to Guava 29.0-android, we see this trace (originating from the androidx crypto library)

java.lang.UnsupportedOperationException
at com.google.protobuf.AbstractProtobufList.ensureIsMutable(AbstractProtobufList.java:172)
at com.google.protobuf.ProtobufArrayList.add(ProtobufArrayList.java:78)
at com.google.crypto.tink.proto.Keyset.addKey(Keyset.java:868)
at com.google.crypto.tink.proto.Keyset.access$1700(Keyset.java:16)
at com.google.crypto.tink.proto.Keyset$Builder.addKey(Keyset.java:1142)
at com.google.crypto.tink.KeysetManager.addNewKey(KeysetManager.java:92)
at com.google.crypto.tink.KeysetManager.rotate(KeysetManager.java:68)
at com.google.crypto.tink.integration.android.AndroidKeysetManager.readOrGenerateNewKeyset(AndroidKeysetManager.java:306)
at com.google.crypto.tink.integration.android.AndroidKeysetManager.<init>(AndroidKeysetManager.java:124)
at com.google.crypto.tink.integration.android.AndroidKeysetManager.<init>(AndroidKeysetManager.java:88)
at com.google.crypto.tink.integration.android.AndroidKeysetManager$Builder.build(AndroidKeysetManager.java:185)
at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:121)
@thaidn
Copy link
Contributor

thaidn commented May 8, 2020

This is a known issue. We're working on a fix. It should be available in HEAD-SNAPSHOT next week and included in 1.4.0-RC2.

@thaidn
Copy link
Contributor

thaidn commented May 9, 2020

This is fixed in HEAD-SNAPSHOT. Please try it out to see if it helps, instructions are at #357 (comment).

@thaidn
Copy link
Contributor

thaidn commented May 9, 2020

This is a dup of #301. Let's move the discussion over there.

@thaidn thaidn closed this as completed May 9, 2020
@ZacSweers
Copy link
Author

Confirmed the snapshot resolves this for us, looking forward to the next release 👍

@thaidn
Copy link
Contributor

thaidn commented May 9, 2020

Awesome! 1.4.0-RC2 is coming next week.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants