Cordova-plugin-file cordova android 6.3.0 build error


#1

Hi guys,

i tried to upgrade my project to cordova android 6.3.0.
But i got this error:

* 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 Lorg/apache/cordova/BuildHelper;

then i tried

cordova plugin rm cordova-plugin-compat --force
cordova platform rm android
cordova platform add android@6.3.0

but then i got this error:
The plugin 'cordova-plugin-compat' is required by (cordova-plugin-file)

so is it possible to install cordova android 6.3.0 with cordova plugin file?


#2

I think I use both last version of cordova android and plugin file, so yes I would say it is possible

About removing compat: I was like you, I read in the release notes of cordova that compat could be deleted but to be honest I think, for now at least, that’s not correct. I tried, faced error, so finally I just reinstalled compat again. I think that plugin are still referencing directly compat and therefore compat is still needed

P.S.: I see that you found my issue on stackoverflow :wink: