Skip to content
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

编译失败:Multiple dex files define Landroid/app/IServiceConnection$Stub #426

Open
macarthor opened this issue Jan 3, 2018 · 0 comments

Comments

@macarthor
Copy link

我们公司的产品,由若干app和若干sdk组成

其中一个sdk组发布的aar,静态包含了droidplugin的代码;另一个sdk组的aar,也静态包含了android.app.IServiceConnection的代码

这样就造成了app在集成2个sdk时,发生编译错误:

com.android.build.api.transform.TransformException: com.android.dex.DexException: Multiple dex files define Landroid/app/IServiceConnection$Stub;

由于是不同部门,而且sdk各自有其它适用场景,我们无法要求不同的sdk组重新发布不包含android.app.IServiceConnection的aar。

那如何在不修改两个sdk aar的情况下,成功编译呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant