Open virtualritz opened 7 years ago
Dex limit in Android its quite painful yet easy problem to solve using Android Studio but I guess it might be a bit more complicated using the Processing toolchain.
If you have access to the .gradle file you should add in the dependencies section
compile 'com.android.support:multidex:1.0.0'
and then extend the Application class and add in onCreate
MultiDex.install(this);
I guess your scenario might be quite common for any person willing to add a library. It is rare nowadays to not include multidexing in an app with few libraries. Perhaps it should be enabled by default when an external library is loaded?
The downside is that the app takes a little bit more time to start (around 100ms).
@virtualritz At this moment we are not planning to add multidexing to the mode (@victordiaz but would be happy to discuss it further, or review PRs :-) ), but the beta versions of the mode allow you to export your sketch as a Gradle project, which then you can import from Android Studio.
I'm trying to build a simple (<200lines of code) project with a dependency on HE_MESH (https://github.com/wblut/HE_Mesh). I get a dexing error.
I assume multidex would solve this. How do I activate this in processing-android?