Software Archive
Read-only legacy content
17061 Discussions

Build fails with version 2673

Mike_C_4
New Contributor I
838 Views

As of last week all my builds are failing, I have not updated my plugins I checked all version. I have compile and uploaded it to google with no issues in the past. this has just start happening the end of last week..

( attached the full log ) 

:preDexRelease

:dexRelease
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
	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 ':dexRelease'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
  	/Developer/tools/adt-bundle/android-sdk/build-tools/21.1.2/dx --dex --output .../FamilyReunion/platforms/android/build/intermediates/dex/release --input-list=.../FamilyReunion/platforms/android/build/intermediates/tmp/dex/release/inputList.txt
  Error Code:
  	2
  Output:
  	
  	UNEXPECTED TOP-LEVEL EXCEPTION:
  	com.android.dex.DexException: Multiple dex files define Landroid/support/annotation/AnimRes;
  		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
0 Kudos
4 Replies
Mike_C_4
New Contributor I
838 Views
I started to remove all the plugins one by one ( very time consuming)
and I found that the admob pro plugins is the reason for the error.
 
not sure why but anytime I want to update my plugins I have this problem on this system.
so I'm out of luck to get any bug fixes or take advantage of any new features.

 It turns out the  XDK system automatically update my plugins.  fortunately I had a copy of the old version that I knew worked and when I tried to installed it (locally) I'm now getting this error.
 
"Expected plugin to have ID com.google.playservices but got cordova-plugin-googleplayservices"
 
so why can't i import my old version of the plugin now? (which is how I did it before)

I'm now stuck in limbo I can't install the old plugin and I can't install the new one.
so my project has stalled again :-(  any help would be great.
 

see attachment

0 Kudos
PaulF_IntelCorp
Employee
838 Views

Did the error result in the plugin not being installed in your project? I've seen that error message but my plugin was still installed. If the plugin is not installing, then you might remove all references to that plugin from the various json files in the plugins directory (exit the XDK first). For example, you'll find a fetch.json, android.json, etc. there. Remove all references to either version of the admob plugin. I suspect the fetch.json is the culprit, but delete the references in all of those files. Then try adding in the older version of that plugin again.

BTW -- which version of the plugin are you trying to install?

0 Kudos
Mike_C_4
New Contributor I
838 Views

Hi Paul

the plugin was removed. The version I removed was 2.9.9 I think  I have since replace the plugin with another fixed all my code and testing it now.  The other plugin admob-google-cordova. seems to be working. just so much wasted time ( so sorry for venting ).

 

The version I was trying to install was : 2.7.8

Mike

0 Kudos
PaulF_IntelCorp
Employee
838 Views

No more action here, please see this thread > https://software.intel.com/en-us/forums/intel-xdk/topic/600642

0 Kudos
Reply