I'm getting the same error:

Gradle: Execution failed for task ':main:dexDebug'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run 
command:
  /Users/cesar/android_sdk/build-tools/19.0.1/dx --dex --output 
.../main/build/libs/main-debug.dex 
/Users/cesar/workspace_android/DigitalYou/MassimoDuttiDemo/main/build/classes/debug
 
/Users/cesar/workspace_android/DigitalYou/MassimoDuttiDemo/main/build/dependency-cache/debug
 
.../main/build/pre-dexed/debug/androidasync-1.2.1-b81b94a33e797a35b0cb57b77873b9ca045ba980.jar
/main/build/pre-dexed/debug/butterknife-4.0.1-ad3e764bb25e1b18041d8800d7246243bbcc1bd1.jar
/main/build/pre-dexed/debug/classes-873bede517bdd27d63abf7243cdad6d054fe26fb.jar
/main/build/pre-dexed/debug/gson-2.2.4-07703dc7a1b0732d6b46b6a0bc197beaad24bbd4.jar
/main/build/pre-dexed/debug/guava-13.0.1-6d660ae6c58895e1832c53738fe7a3489da3c837.jar
/main/build/pre-dexed/debug/ion-1.2.1-647080a1d5a1c41eb8b10d1671636fbe766b5238.jar
/main/build/pre-dexed/debug/jackson-2.3.0-e46551fc535f8f6d4bae85caa3d09cf2fb0c782a.jar
/main/build/pre-dexed/debug/jackson-annotations-2.3.0-a21d7cef15c2953ada070d9bd9027a9476ad1616.jar
/main/build/pre-dexed/debug/jackson-core-2.3.0-497085bb5f061c10a0619b574fb161efc3587654.jar
/main/build/pre-dexed/debug/jackson-databind-2.3.0-80e41590d08de8b2140b66adf54f3761177d6b2b.jar
/main/build/pre-dexed/debug/jackson-module-scala_2.10-2.3.0-619aafee2bb12fe28b5dc85c02393ae1656b97d1.jar
/main/build/pre-dexed/debug/jsr305-2.0.1-2b905f8775cc8bb9ef17872a4e422ce4a6ce4061.jar
 
/main/build/pre-dexed/debug/paranamer-2.3-f971ce61af8f530a3750c937862d9c71605aa151.jar
 
/main/build/pre-dexed/debug/scala-library-2.10.3-d3cd41e1e04e2ccec48669888f48be07219ddfbd.jar
 
/main/build/pre-dexed/debug/support-v4-19.0.1-583fecd167fffd289536943f1f17f968805518cb.jar
  Error Code:
  2
  Output:
  UNEXPECTED TOP-LEVEL EXCEPTION:
  java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536
  at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:501)
  at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:282)
  at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:490)
  at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:167)
  at com.android.dx.merge.DexMerger.merge(DexMerger.java:188)
  at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:439)
  at com.android.dx.command.dexer.Main.runMonoDex(Main.java:287)
  at com.android.dx.command.dexer.Main.run(Main.java:230)
  at com.android.dx.command.dexer.Main.main(Main.java:199)
  at com.android.dx.command.Main.main(Main.java:103)


The only option I have is to get rid of some libraries like "ion" that 
depend on some other libraries? I prefer using Jackson instead of Gson but 
if I have no choice... :S



El jueves, 16 de enero de 2014 13:49:36 UTC+1, [email protected] 
escribió:
>
>
> I'm trying to include volley in my project.  I've updated the build.gradle 
> file and added:
>
> However, now when I 'gradle clean assembleDebug' I'm getting an issue with 
> dexMerger:
>
> UNEXPECTED TOP-LEVEL EXCEPTION:
>
> java.lang.IllegalArgumentException: method ID not in [0, 0xffff]: 65536
>
> at com.android.dx.merge.DexMerger$6.updateIndex(DexMerger.java:499)
>
> at com.android.dx.merge.DexMerger$IdMerger.mergeSorted(DexMerger.java:274)
>
> at com.android.dx.merge.DexMerger.mergeMethodIds(DexMerger.java:488)
>
> at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:165)
>
> at com.android.dx.merge.DexMerger.merge(DexMerger.java:186)
>
> at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300)
>
> at com.android.dx.command.dexer.Main.run(Main.java:232)
>
> at com.android.dx.command.dexer.Main.main(Main.java:174)
>
> at com.android.dx.command.Main.main(Main.java:91)
>
> :myApp:dexDebug FAILED
>
> Any ideas on what might be causing this?  I've tried building volley from 
> git and adding the jar to the libs as well with the same results.  If I 
> just remove the reference everything builds fine.
>
> Please let me know if there is any other information that would be useful 
> in debugging this.  I've included the full dex line below.
>
>
> Thanks in advance,
>
> Rindress
>
>
> DEX output
>
>     /Users/rindress/devtools/android-sdk-macosx/build-tools/17.0.0/dx 
> --dex --output 
> /Users/rindress/git/android-nga/myapp/build/libs/myapp-debug.dex 
> /Users/rindress/git/android-nga/myapp/build/classes/debug 
> /Users/rindress/git/android-nga/myapp/build/dependency-cache/debug 
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/android-switch-backport-40d13bc1fad0423d65a95d2b06abcb9675345b6d.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/classes-153848e9ef46caaed4aa52d790812ddfd500307f.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/classes-19ddd527912f30267346c437cc84f5bbd4923c06.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/classes-b2639f2d7b60e8154da793af65403b924e28b5f7.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/commons-codec-1.8-8bf5aa40fc46e8dcad2f08342c4e1c4103943c8d.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/cwac-wakefulintentservice-f0f16fe0d7ae2e5b223c4e75fc572c2c704120ae.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/facebook-1.1.1-97e5701e11713b94cac85b3494ef4b3f07bc8466.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/google-api-client-1.4.1-beta-507d1e0e92024a7773445639eca5b5a5c91b6cfa.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/google-api-client-googleapis-1.4.1-beta-9d0122c332e58c2bc4229e8197160ca4c54d5769.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/google-api-client-googleapis-extensions-android2-1.4.1-beta-04ea4a931415c284b16868be6d3980d43355e7e9.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/gson-2.2.4-5caf14d8f708ea49e40220422eba54f7be03b4ed.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/guava-15.0-a5456f9056eb489225c53f9b44d12a92602930d6.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/httpcore-4.3-6c9db2e6a254c69f739f27d39acc4b163983019d.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/jackson-core-asl-1.6.7-eccb5b69cb41fdbf5d0f42377df508452b6941f8.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/jsr305-2.0.2-106c34262d13a0bfdfbc5eaf0cd963b8ab5e6fb8.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/junit-4.8.2-97a03a95d48da1f6377e60144e5327a849e413aa.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/libGoogleAnalyticsServices-0b363ccb44eb44f0d0e7683a5affa69206aeceb6.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/library-2.4.0-159a19fb81fbe23a1baaa6e6a77248e4c7cd5af9.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/log4j-1.2.16-e0251aa01ba3f987bcc951fcc5f39856d7568984.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/logback-android-1.0.10-2-a8a906162d46b621a8b8620441b8690b2a69f860.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/ormlite-android-4.47-62323564ce6756e4f3bd79da039ebf735c660475.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/ormlite-core-4.47-ceadd086f0e2c93605a40020d65450033dddca87.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/places-api-client-1.0.0-2632053fc969b6631c6e5594ea68d1ecb985af3d.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/protobuf-java-2.5.0-5da2d01bfd1d3de663209d24c2d116b7a400d69d.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/slf4j-api-1.7.5-8527de32bb4c63d7ae768bb77b423e6cb421a720.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/support-v4-18.0.0-6c795cba05b02f7a75a7d28293379dd6d7180e5e.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/urlimageviewhelper-1.0.4-abe0a21f435e32185eb3ef741b14f6e6383c9ee0.jar
>  
> /Users/rindress/git/android-nga/myapp/build/pre-dexed/debug/volley-ce6c044fdaa895c9a3dcd680bbd75d659ee2287a.jar
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to