Hello, I see this issue is affecting lots of older projects.
I was able to completely build my Ionic project and get it onto the Google Play store (it’s still there) but this error is beyond me so far.
I’ve seen several other posts, some with some cryptic answers, others with people asking same thing I am.
So far, I have gathered this:
Related to multiple plugins calling for various versions of a file (JAR?)
– gradle dependencies doesnt work for me, says “no configuration”
– I haven’t been able to get the “gradle” view from Android studio
– Adding lines to build.gradle to dexOptions preDexLibraries == FALSE
Have tried to remove/add android platform multiple times
Have upgraded ionic
Have done “ionic state reset”
I can’t seem to find the dependency tree to figure out how to fix this.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:transformClassesWithDexForDebug’.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
Can someone help point me in right direction?