Integrate Appsflyer with ionic App

i’m working on a Ionicframwork app and i need to integrate appsflyer sdk , i use the phonegap sdk on this link : [github][1]

but it generate this error when i try ro build :

UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define   Lcom/google/ads/AdRequest$ErrorCode;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)
at com.android.dx.command.dexer.Main.run(Main.java:277)
at com.android.dx.command.dexer.Main.main(Main.java:245)
at com.android.dx.command.Main.main(Main.java:106)


FAILED

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:
org.gradle.process.internal.ExecException: Process 'command  
'/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java''  
 finished with non-zero exit value 2

can any one help me. thanks

I got the same when building the app with the facebook-sdk … do you have any solution already?

I am facing the same issue due to Facebook-sdk. Can you sugget any solution @niwen

not yet , i did not found any thing .

@satyampv I used a fork of it and it is now working with android: https://github.com/Telerik-Verified-Plugins/Facebook