Reputation: 334
I've been given few jar files which use java.util.Base64 to encode and decode data, when i try to get response from a network call using these jars to parse the data, i'm getting Failed resolution of: Ljava/util/Base64;
but it works properly in API >= 26 any idea how to fix this issue? because i can't change those Jars
Upvotes: 1
Views: 1049
Reputation: 199805
As per the java.util.Base64
documentation, it was only added in API 26. The only API prior to that point is the android.util.Base64
class, which has a significantly different API.
Upvotes: 3