Git Product home page Git Product logo

Comments (16)

mlgmlg avatar mlgmlg commented on August 22, 2024 2

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

from cordova-plugin-pingpp.

samurai00 avatar samurai00 commented on August 22, 2024

删除其中一个 libammsdk.jar

from cordova-plugin-pingpp.

yanglong2 avatar yanglong2 commented on August 22, 2024

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

from cordova-plugin-pingpp.

sinlov avatar sinlov commented on August 22, 2024

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

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

from cordova-plugin-pingpp.

samurai00 avatar samurai00 commented on August 22, 2024

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

from cordova-plugin-pingpp.

sinlov avatar sinlov commented on August 22, 2024

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

from cordova-plugin-pingpp.

sinlov avatar sinlov commented on August 22, 2024

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

from cordova-plugin-pingpp.

519818538 avatar 519818538 commented on August 22, 2024

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

from cordova-plugin-pingpp.

519818538 avatar 519818538 commented on August 22, 2024

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

from cordova-plugin-pingpp.

519818538 avatar 519818538 commented on August 22, 2024

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

from cordova-plugin-pingpp.

mlgmlg avatar mlgmlg commented on August 22, 2024

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

from cordova-plugin-pingpp.

519818538 avatar 519818538 commented on August 22, 2024

@mlgmlg 没有遇到

from cordova-plugin-pingpp.

sinlov avatar sinlov commented on August 22, 2024

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

from cordova-plugin-pingpp.

mty918 avatar mty918 commented on August 22, 2024

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

from cordova-plugin-pingpp.

Shaooooo avatar Shaooooo commented on August 22, 2024

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

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

from cordova-plugin-pingpp.

Shaooooo avatar Shaooooo commented on August 22, 2024

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

from cordova-plugin-pingpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.