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

Type kotlin.coroutines.jvm.internal.DebugProbesKt is defined multiple times #1079

Open
jeesk opened this issue Oct 30, 2024 · 5 comments
Open

Comments

@jeesk
Copy link

jeesk commented Oct 30, 2024

使用的是最新的replugin 3.1.
使用了kotlinx-coroutines-core-jvm 打包后报错, 发现DebugProbesKt 在多个dex的包定义了.

@Spider-007
Copy link

新建插件工程,做插件开发,导入plugin-gradle 3.1.0&plugin.lib3.1.0也遇到了该问题,有大佬知道如何解决?

@jeesk
Copy link
Author

jeesk commented Nov 1, 2024

新建插件工程,做插件开发,导入plugin-gradle 3.1.0&plugin.lib3.1.0也遇到了该问题,有大佬知道如何解决?

自己构建kotlin协程库的依赖, 然后将DebugProbesKt 从源代码中删除, 自己构建。 生产环境使用自己构建的coroutin的包。

@Spider-007
Copy link

谢谢解答!我是基于demo2进行代码迁移,可以完成插件开发流程。但是当加入新的依赖库 (work-rumtime)后会出现这个问题,此方法可用。

@welthy
Copy link

welthy commented Nov 11, 2024

请问下,我纯java的工程,没有依赖kt 为啥也会报这个错啊?

@Spider-007
Copy link

可以基于demo2做研究,把相关代码进行移植

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

3 participants