We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, i want to know if the grafica library has any problem in Android mode of Processing i3.Because after i made a programm using the grafica library, i tried to turn the mode from Java to Android, so i would create an app but it showed be the bellow error:
:app:mergeDebugAssets
:app:transformClassesWithDexForDebugDex: 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.
UNEXPECTED TOP-LEVEL EXCEPTION:
Answers
Sadly it is broken now, It worked just fine on older processing 2 in android mode.
I downloaded the processing 2..I tried to run the code and i got this error: This version of Processing only supports libraries and JAR files compiled for Java 1.6 or earlier. A library used by this sketch was compiled for Java 1.7 or later, and needs to be recompiled to be compatible with Java 1.6.
Also there isn't Android Mode in processing 2.
It was reported before that grafica was working in Processing 3.0.(?) and an earlier Android Mode version (Earlier than the current 4.0): https://forum.processing.org/two/discussion/136/grafica-library
So your test should be done using a prev version of Android Mode in Processing.
Kf
Do you mean that i have to use Processing 2? If you mean that there is not android mode in previous version.. I tried also to install grafica library manually but still the same result..
My suggestion is Processing 3 and previous Android mode. I cannot comment on the Grafica lib version but I am willing to bet the latest version should work. Unfortunately no time to test atm.
Kf
Can you point to a link to download the correct versions please maybe?
Deleted comment. Wrong post.
Kf
https://github.com/processing/processing/releases
https://github.com/processing/processing-android/releases
https://github.com/jagracar/grafica/releases
Plus for older android modes you need to download correct API level in Adndroid SDK Manager
I do not remember now on which version of the Processing it stopped working, later 2.xx or early 3.xx
Hi, I think I solved the problem with the android mode. I built version 1.8.0 of grafica with java8. Version 1.9.0 uses java7 and the problem seems to be gone.
Simply remove the grafica library using the contribution manager, and install it again.
Alternatively, you can download it here:
https://github.com/jagracar/grafica/raw/master/releases/grafica.zip
Let me know if it works!
Yes it works! thank you very much!!! :) ;) =D>
Great!! Sorry for taking so long to solve it!