Unable to merge dex in ionic

Thankx, it helped :slight_smile:

Was stuck for hours.
Thanks a lot.

For me none of the above worked, except:

cordova plugin rm cordova-plugin-compat --force
cordova plugin add cordova-plugin-compat@1.2
cordova  plugin add cordova-android-support-gradle-release
cordova clean
cordova build
4 Likes

Thanks @devakash01. I don’t know how or why, but your steps worked for me! Really appreciate if you can provide some reasoning behind these as well. Thanks

Yes it works perfectly! Thx :wink:

Solved by pankajPizone https://github.com/pankajPizone

ionic cordova plugin add cordova-plugin-androidx
ionic cordova plugin add cordova-plugin-androidx-adapter

https://github.com/arnesson/cordova-plugin-firebase/issues/1083#issuecomment-503650114

4 Likes

cordova clean fixed all my issues. Well not all my issues but the issues with my app.

Hi, I have tried all solutions from that thread, nothing works for, does anyone has another solution??

Please post your project.properties written in platform android folder.

Have you found any solution for this?

this work’s for me.
I’m using the admob-plus for ionic

As of Feb 2020, I had to install couple of androidx plugins to solve the issue. So simply run the following commands in your project root:

Add plugin to enable AndroidX in the project
cordova plugin add cordova-plugin-androidx

Add plugin to patch existing plugin source that uses the Android Support Library to use AndroidX
cordova plugin add cordova-plugin-androidx-adapter

Now run the following commands in your project root:
cordova clean
ionic cordova build android

Hope this helps someone!

6 Likes

Thank You… It worked

Thanks a lot. Only your way fixes my issue.

Thanks… it save my day

This was very helpful! Thank you!
Saved my day.

This solves my problem too. Thank you very much!
If it is no so much trouble, can you tell how you found installing those plugins were the solution?
I’m learning and may be from great help to understand why is it working. Thanks again!

The only solution make me happy. Thank you. Thank you. Thank you.

This works for me! Thanx! 21 Jan of 2121