Unable to merge dex Ionic 3

回眸只為那壹抹淺笑 提交于 2019-12-04 04:34:16
Trần Quang Hiệp

What helped me was running:

cordova clean

I did struggle with this issue for 2 days after i used google maps plugin inside my app and i suppose it is because of google-play-service conflicts and i resolved it by install the latest grade release by using this command. Hope it helps anyone else facing this issue

ionic cordova plugin add cordova-android-play-services-gradle-release

I solved this issue by running simply this command and then build the project. don't go into complicated answers like upgrading Gradle or google packages etc..

 cordova clean android 
 ionic cordova build android 

I solve with

Cordova Clean Android
Cordova Build Android

I have the same issue

(Unable to merge dex Ionic)

when I created the Ionic app. When I run the app the

BUILD FAILED in 11s 37 actionable tasks: 3 executed

error occurred. First I use the following solution but it doesn't work for me but it work for the other I guess.

configurations.all {
    resolutionStrategy {
       force 'com.android.support:support-v4:26.1.0'
    } 
}

Finally this is what helped me to overcome the issue of failing to build the app.

cordova clean android
ionic cordova build android
ionic cordova run android (To re-launch the app)

I also faced this issued. I solved it via two steps:

Step 1 : cordova clean

Step 2: cordova build

Above commands didn't fix my problem.

I change the following line in project.properties in platforms folder

com.google.android.gms:play-services-analytics:11.0.1

to

com.google.android.gms:play-services-analytics:+

and it's fixed

Copying this answer from this Github issue comment from Trent Gardner, since anything else didn't work for me:

Fix for the Facebook plugin was to force the Facebook SDK to version 4.25.0.

cordova plugin add cordova-plugin-platform-replace

Then add to your config.xml

<platform name="android">
  <replace-string file="project.properties" find="regex:com\.facebook\.android\:facebook-android-sdk\:[\+0-9\.]+" replace="com.facebook.android:facebook-android-sdk:4.25.0" />
</platform>

Finally run cordova prepare android

Works with the latest 1.9.1 version of cordova-facebook-plugin4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!