Vonage / vonage-java-code-snippets

Java code examples for using Vonage
MIT License
11 stars 31 forks source link

Invoke Dynamic Not Supported #82

Closed oseamiya closed 3 years ago

oseamiya commented 3 years ago

I am getting this error 'Invoke Dynamic Not supported' while building the application. This is error. image

oseamiya commented 3 years ago

This is probably due to Dex does not support Java 8 constructs. So to fix the issues, you should rewrites Java 8 bytecode to Java 7 that Dex can understand.

dragonmantank commented 3 years ago

Unfortunately we do not support Java prior to 8, as Java 7 is no longer supported by Oracle.

On a side note in regards to Dex, these code snippets and our SDK are not designed for Android and are meant to be run under a server-side JVM. All the Java code in this repo, and in the SDK itself, would present a fairly large security issue when deployed to a client device, as your credentials can easily be extracted.