I tried the sound example (https://processing.org/reference/libraries/sound/Sound.html) and while the app “worked”, as in- it runs on the device, no sound is generated.
I get the Processing console error:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/media/AudioRecord$Builder;
at processing.sound.JSynAndroidAudioDeviceManager$AndroidAudioInputStream.start(Unknown Source)
at com.jsyn.engine.SynthesisEngine$EngineThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “android.media.AudioRecord$Builder” on path: DexPathList[[zip file “/data/app/processing.test.musicnotes_06b_android-1/base.apk”],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
… 2 more
Suppressed: java.lang.ClassNotFoundException: android.media.AudioRecord$Builder
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
… 3 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
How do I solve it? What am I doing wrong?
Something to do with my installation?
I’m using Windows 10 & Processing 3.5.4
Tried on a Moto X (1st Gen) .and a Xioami Redmi 5A (Where I don’t ger the error report “AndroidDevice: cannot find process id, console output will be disabled”