@ciaodate wrote:
After I added Crosswalk to ionic project by using: ionic browser add crosswalk.
Then when I build android: ionic build android.
The error occurred:UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/acce ssibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionI mpl; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:579) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:535) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:517) at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:164) at com.android.dx.merge.DexMerger.merge(DexMerger.java:188) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:50 4) 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) FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':transformClassesWithDexForArmv7Debug'. FAILED BUILD FAILED Total time: 25.633 secs > com.android.build.api.transform.TransformException: com.android.ide.common.pro cess.ProcessException: org.gradle.process.internal.ExecException: Process 'comma nd 'C:\Program Files\Java\jdk1.8.0_31\bin\java.exe'' finished with non-zero exit value 2 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Error: Error code 1 for command: cmd with args: /s,/c,"D:\outtoplay\ionic\OutToP lay\platforms\android\gradlew cdvBuildDebug -b D:\outtoplay\ionic\OutToPlay\plat forms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=t rue"
My ionic info:
Your system information: Cordova CLI: 6.1.1 Gulp version: CLI version 1.2.1 Gulp local: Local version 3.9.1 Ionic CLI Version: 1.7.15 Ionic App Lib Version: 0.7.2 OS: Windows 8.1 Node Version: v4.4.1
Posts: 1
Participants: 1