Software Archive
Read-only legacy content
17061 Discussions

XDK Build fail on update to 3240

Isaias_U_
Beginner
608 Views

Please help me, I trying to build my app on previus version of intel xdk works always but when I updated It fail. here is my log.

Thanks.

 

:preDexArmv7Release
:dexArmv7Release
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
	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:454)
	at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
	at com.android.dx.command.dexer.Main.run(Main.java:246)
	at com.android.dx.command.dexer.Main.main(Main.java:215)
	at com.android.dx.command.Main.main(Main.java:106)

 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':dexArmv7Release'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
  	.../android-sdk/build-tools/21.1.2/dx --dex --output .../SportsEdge/platforms/android/build/intermediates/dex/armv7/release --input-list=.../SportsEdge/platforms/android/build/intermediates/tmp/dex/armv7/release/inputList.txt
  Error Code:
  	2
  Output:
  	
  	UNEXPECTED TOP-LEVEL EXCEPTION:
  	com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
  		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:454)
  		at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
  		at com.android.dx.command.dexer.Main.run(Main.java:246)
  		at com.android.dx.command.dexer.Main.main(Main.java:215)
  		at com.android.dx.command.Main.main(Main.java:106)
  	


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 19.233 secs

.../SportsEdge/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                    ^
Error code 1 for command: .../SportsEdge/platforms/android/gradlew with args: cdvBuildRelease,-b,.../SportsEdge/platforms/android/build.gradle,--no-daemon
Command finished with error code 1: .../SportsEdge/platforms/android/cordova/build --release
ERROR building one of the platforms: Error: .../SportsEdge/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: .../SportsEdge/platforms/android/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (.../cordova/cordova-cli/5.1.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:821:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
0 Kudos
6 Replies
PaulF_IntelCorp
Employee
608 Views

Isaias -- please attach the entire detailed build log, the important part is above what you pasted. Attach it as a text file using the "Attach Files to Post" link below the forum post edit window. Please do not paste the entire build log directly into your post.

0 Kudos
Isaias_U_
Beginner
608 Views

Thanks here is my log

0 Kudos
PaulF_IntelCorp
Employee
608 Views

It looks like you are building with CLI 5.1.1, not positive. Also, you are including several intel.xdk plugins. These have been retired and should no longer be use. I believe they are the source of the build problem. Please replace them with the equivalent Cordova plugins (see https://software.intel.com/en-us/xdk/docs/intel-xdk-api-cordova-plugin-methods-properties-events for help). Also, try using CLI 5.4.1 and be sure to allow the XDK to update all of the plugins when you switch to CLI 5.4.1.

0 Kudos
Isaias_U_
Beginner
608 Views

Hi Paul thank you for your fast response, I have many apps on my intel xdk, this log(attached) is an app with cordova plugins only and the cordova CLI is 5.4.1 and fail too.

0 Kudos
PaulF_IntelCorp
Employee
608 Views

Isaias -- the build appears to be complaining about a missing icon. Can you attach your intelxdk.config.additions.xml file and your <project-name>.xdk file? Both are in the root directory of your project.

0 Kudos
Isaias_U_
Beginner
608 Views

Now I successfully generated the build, Thank for your help and time Paul.

0 Kudos
Reply