2016-05-17 72 views
0

我对Android很新颖。当我建立我的当前项目我得到这个错误:将字节码转换为dex时出错

Error:Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

这是我的依赖关系:

dependencies { 
compile fileTree(include: ['*.jar'], dir: 'libs') 
compile 'com.android.support:appcompat-v7:23.+' 
compile 'com.android.support:recyclerview-v7:23.+' 
compile 'com.android.support:support-v4:23.+' 
compile 'com.google.code.gson:gson:2.5' 
compile 'com.makeramen:roundedimageview:2.2.1' 
compile 'com.nineoldandroids:library:2.4.0' 
compile 'com.daimajia.easing:library:[email protected]' 
compile 'com.daimajia.androidanimations:library:[email protected]' 
compile 'com.squareup.picasso:picasso:2.5.2' 
compile 'com.android.support:support-v4:+' 
compile 'com.squareup.picasso:picasso:2.3.2' 
compile 'com.nineoldandroids:library:2.4.0' 
compile 'com.daimajia.slider:library:[email protected]' 
compile 'de.hdodenhof:circleimageview:2.0.0' 
compile 'com.facebook.android:facebook-android-sdk:4.5.0' 
compile 'com.squareup.okhttp3:okhttp:3.2.0' 
compile 'com.kyleduo.switchbutton:library:1.4.0' 
compile files('libs/JTransforms-3.1-with-dependencies.jar') 
compile 'com.github.Semantive:waveform-android:v1.2' 
compile files('libs/TarsosDSP-Android-latest.jar') 
} 

我使用gradle 2.13gradle-build 2.1

有人告诉我清理项目,但没有奏效。请帮忙。

谢谢

回答

0

那么,如果我理解你的问题,我希望这个答案可以帮助你。

您可以增加允许dexer进程使用的内存大小。 打开位于以下位置的ini文件: C:\ Users \\ AppData \ Roaming \ Anywhere Software \ Basic4android 更改以下行:

MaxRamForDex = 1024 To :.

MaxRamForDex = 1536

+1

对不起你能解释更详细?我使用的是OSX,我无法找到该文件 –

1

这个问题可能是在任何Java类文件的错误包的名字,我有同样的问题,这是因为这problem.Try重建项目,并再次检查。

1
compile 'com.android.support:support-v4:23.+' 
compile 'com.android.support:support-v4:+' 

您有反复参考

相关问题