I may have figured something out.
After exporting the project to android studio and doing the usual fixes required following that, I got this error:
Cannot fit requested classes in a single dex file (# methods: 68587 > 65536)
and somewhere else in the errors this:
The number of method references in a .dex file cannot exceed 64K.
the solution to this normally according to this stackoverflow is to add multiDexEnabled true
in build.gradle
This worked but I want to continue working in processing for now.
I will mark this as a solution and start a new topic for that.