-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用android studio 编译出现 com.android.dex.DexException: Multiple dex files define Lcom/sina/weibo/sdk/BuildConfig;错误 #32
Comments
我也碰到一样的问题 |
解决了吗? |
取tag版本 |
@shirensong 具体要取哪一个 tag版本? |
解决方法:解包 weibosdkcore.jar,删除里面的 BuildConfig.class,重新打包 jar。 |
这个问题已经卡了我一上午了~ |
记得我根据其他人的提示,这么解决也行:把WeiboSDK里面的包名改了,不让它和weibosdkcore的相重。 |
@stackia it works, thank you. |
正解:stackia commented on Nov 20, 2014 (不要用mac自带的解压和压缩) |
/** 删除方法:直接用winrar打开然后选中BuildConfig.class文件 ,再点击工具栏的“删除”图标就可以了。 |
@yongjhih do you work in sina?I see your repository is forked. |
No. We just restructured the repository for easy to use. If I work for sina, I'd like to commit this repository, but that's big changes, I did not create pull-requests. |
@sinaweibosdk why close this ? |
Error:Execution failed for task ':app:dexDebug'.
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Lcom/sina/weibo/sdk/BuildConfig;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:594)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:552)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:533)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:170)
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 text was updated successfully, but these errors were encountered: