10000 libammsdk.jar 与 xu-li/cordova-plugin-wechat,微信登录功能中的 libammsdk.jar冲突。 · Issue #10 · TongChia/cordova-plugin-pingpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

libammsdk.jar 与 xu-li/cordova-plugin-wechat,微信登录功能中的 libammsdk.jar冲突。 #10

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

Open
JhonYoung opened this issue Dec 31, 2015 · 16 comments

Comments

@JhonYoung
Copy link

抱歉打扰了。我们需要制作微信登录和微信支付,用cordova打包的时候显示着两个包冲突,请问什么解决方案吗?

@samurai00
Copy link

删除其中一个 libammsdk.jar

@yanglong2
Copy link

因为你这是重写了libammsdk,如果删除的话,要么你的不能用,要么微信登录的不能用,怎么修改让你的libammsdk和官方提供的libammsdk.jar类名不一样,这样各用各的类,就不会冲突

@sinlov
8000
Copy link
sinlov commented Jan 1, 2016

PingPP的插件中,libammsdk是精简过的,很多功能是没有的

如果用其他三方插件制作者的包,会出现无法调用的问题,腾讯也没有提供maven仓库的包管理,所以,一旦使用pingpp,那么很多微信API的非支付功能都将失效,目前尝试弃用pingpp插件的这个精简包,引入完整包,但仍然出现多个pingin的依赖包(liammsdk)无法找到的问题。

@samurai00
Copy link

Ping++ 官方的 libammsdk.jar 是没有精简过的。但有可能不是最新的。
这里的 libammsdk.jar 有没有精简过,我不清楚,看起来好像也没做精简。

@sinlov
Copy link
sinlov commented Jan 2, 2016

pingpp 的 libammsdk.jar 文件只有 40 多KB,微信官方下载的静态包有100多KB

@sinlov
Copy link
sinlov commented Jan 2, 2016

已经解决了,我fork了pingpp的代码,移掉了重复引入依赖包,在cordova构建次序上,让功能更全jar包的优先导入就可以了。
谢谢提供支持,感谢!

@519818538
Copy link

@sinlov 大神,如何让功能更全的jar包优先导入?你移除的是这个插件的jar包还是其他插件的jar包?

@519818538
Copy link

@JhonYoung 冲突解决了么?咋弄的?我跟你用的是同样的两个插件

@519818538
Copy link

@sinlov 我看到你在ping++插件和wechat插件的分支里面的plugin.xml中都把引入微信sdk的动作去掉了,那你是什么时候引入的微信sdk?

@mlgmlg
Copy link
mlgmlg commented Feb 23, 2016

@519818538 大神,请问你遇到过这个问题吗
TypeError:Cannot read property 'createPayment' of undefined
这是我打包之后,遇到的错误。调用不了sdk

@519818538
Copy link

@mlgmlg 没有遇到

@sinlov
Copy link
sinlov commented Feb 23, 2016

@519818538 git clone rule First In Followed Clash
Package Structure made by Full the Cordova Plugin structure
See cordova-plugin-wechat-example

@mty918
Copy link
mty918 commented Apr 20, 2016

我是完全看不到怎么处理的,能详细说一下吗

@Shaooooo
Copy link

Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/tencent/mm/opensdk/constants/Build.class

不知道怎么解决,查这个路径 用两处引用 分别是 微信登录的依赖和 微信支付的依赖

@mlgmlg
Copy link
mlgmlg commented Apr 26, 2017

@Shaooooo
我当时是这么解决的。
http://blog.csdn.net/ganggelove/article/details/50808974
image

@Shaooooo
Copy link
Shaooooo commented May 3, 2017

@mlgmlg 已按照您的办法解决,非常感谢。

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

9 participants
0