codahale / shamir

A Java implementation of Shamir's Secret Sharing algorithm over GF(256).
Apache License 2.0
207 stars 84 forks source link

No static method toUnsignedInt(B)I in class Ljava/lang/Byte; or its super classes (declaration of 'java.lang.Byte' appears in /system/framework/core-oj.jar) #10

Closed rohanagarwal94 closed 6 years ago

rohanagarwal94 commented 6 years ago

@codahale This is the error on the execution of the line

final Map<Integer, byte[]> parts = scheme.split(secret);

codahale commented 6 years ago

This library requires Java 8 or newer.

rohanagarwal94 commented 6 years ago

@codahale is it possible in any way to run in Java 7? Android does not provide full Java language support as of yet.

codahale commented 6 years ago

I’ve never done any Android programming, so I don’t have any advice for you. Java 7’s last update was more than three years ago. All the code I write is for Java 8. Once Java 11 is released, I’ll begin to target that.