Error converting bytecode to dex

I just start “android mode” in processing. when i import “g4p_controls.*” library this error showed up when trying to compile an app that was previously working in “java mode”:

Error:Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the ‘java’ gradle plugin in a library submodule add
targetCompatibility = ‘1.7’
sourceCompatibility = ‘1.7’
to that submodule’s build.gradle file.

i get this error for this library too:
import ddf.minim.*

i am pleased if you help me.

I am not sure if G4P works in Android. You can try controlP5 or use Android native widgets like in this example.

Minim doe snot work in Android. You could use the cassette library or Android MediaPlayer. Ketai is also another library that you should explore as it provides functions specific for Processing Android.

Kf