Git Product home page Git Product logo

Comments (12)

aaronisme avatar aaronisme commented on June 1, 2024

你build的时候生成app 签名,报名都正确吗?@wat2012

from cordova-plugin-wechat.

wat2012 avatar wat2012 commented on June 1, 2024

1 cordova platform rm android
2 cordova plugin add https://github.com/xu-li/cordova-plugin-wechat--variable wechatappid=APPID
3 cordova platform add android
4 cordova build android
5 使用adt eclipse导出,使用release的keystore进行导出的apk
直接在我的项目使用
https://github.com/xu-li/cordova-plugin-wechat#share-link
Wechat.share({
message : {
media : {
type : Wechat.Type.LINK,
webpageUrl : "http://sj.zouqi.mobi/zouqi/html/activity/share.html?id="+activityId
}
},
scene : Wechat.Scene.TIMELINE // share to Timeline
}, function () {
alert("Success");
}, function (reason) {
alert("Failed: " + reason);
});

前面再没有项目中再没有Wechat的调用
这样的步骤,正确吗?

from cordova-plugin-wechat.

xu-li avatar xu-li commented on June 1, 2024

@wat2012,你申请的微信APP里面有没有设置签名?请查阅签名的生成方法

from cordova-plugin-wechat.

wat2012 avatar wat2012 commented on June 1, 2024

设置签名了,你什么时间有空,帮我远程一下好吗
Q 249895015
email [email protected]

from cordova-plugin-wechat.

xu-li avatar xu-li commented on June 1, 2024

@wat2012 不好意思,最近有点忙,请问你试过我的那个DEMO么?

from cordova-plugin-wechat.

litingjun2015 avatar litingjun2015 commented on June 1, 2024

@xu-li ,请问包名要填 xu.li.cordova.wechat 吗?

from cordova-plugin-wechat.

xu-li avatar xu-li commented on June 1, 2024

如果是Android,包名和签名绑定的。也就是说你运行我的demo,应该要用我的demo的包名。

from cordova-plugin-wechat.

litingjun2015 avatar litingjun2015 commented on June 1, 2024

是Android,那应该是 xu.li.test.cordova.plugin.wechat 对吧?

from cordova-plugin-wechat.

xu-li avatar xu-li commented on June 1, 2024

对,xu.li.test.cordova.plugin.wechat。

题外话,如果你clone下来,应该是不需要你改东西的。

from cordova-plugin-wechat.

litingjun2015 avatar litingjun2015 commented on June 1, 2024

你的意思是 wechatappid=wx4a525790c75c494f 也用你的吗?

from cordova-plugin-wechat.

xu-li avatar xu-li commented on June 1, 2024

是的。

from cordova-plugin-wechat.

litingjun2015 avatar litingjun2015 commented on June 1, 2024

build的时候曾出现红色的告警:
:preDexDebugwarning: Ignoring InnerClasses attribute for an anonymous inner class
(com.tencent.mm.sdk.openapi.WXApiImplV10$ActivityLifecycleCb$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.tencent.mm.sdk.openapi.WXApiImplV10$ActivityLifecycleCb$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.tencent.mm.sdk.b.b) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.

执行“发送Text消息给微信”时报“Failed:未知错误”

from cordova-plugin-wechat.

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.