Comments (12)
你build的时候生成app 签名,报名都正确吗?@wat2012
from cordova-plugin-wechat.
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.
@wat2012,你申请的微信APP里面有没有设置签名?请查阅签名的生成方法。
from cordova-plugin-wechat.
设置签名了,你什么时间有空,帮我远程一下好吗
Q 249895015
email [email protected]
from cordova-plugin-wechat.
@wat2012 不好意思,最近有点忙,请问你试过我的那个DEMO么?
from cordova-plugin-wechat.
@xu-li ,请问包名要填 xu.li.cordova.wechat 吗?
from cordova-plugin-wechat.
如果是Android,包名和签名绑定的。也就是说你运行我的demo,应该要用我的demo的包名。
from cordova-plugin-wechat.
是Android,那应该是 xu.li.test.cordova.plugin.wechat 对吧?
from cordova-plugin-wechat.
对,xu.li.test.cordova.plugin.wechat。
题外话,如果你clone下来,应该是不需要你改东西的。
from cordova-plugin-wechat.
你的意思是 wechatappid=wx4a525790c75c494f 也用你的吗?
from cordova-plugin-wechat.
是的。
from cordova-plugin-wechat.
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)
- 安卓11分享闪退
- Android通过查看日志发现wechat.auth有返回值,但是wechat.auth的success回调没有接收到 HOT 5
- The app is blocked from being shared. Unable to share on WeChat. HOT 1
- 支援AppID動態設定
- Capacitor can't get any response from Wechat.auth() HOT 4
- 安卓10 分享微信,提示"未安装微信" HOT 3
- capacitor 如何配置? HOT 5
- 微信的wxapi.WXEntryActivity及wxapi.WXPayEntryActivity的的建议
- 无法分享微信或者验证,反复跳转 HOT 2
- 安卓分享小程序闪退
- HarmonyOS 未授权存储权限,点击分享到微信。应用闪退 HOT 3
- 部分安卓机型调用分享小程序闪退
- Build fail on M1 Mac
- 安卓11系统以上分享文件异常 HOT 1
- BSF软件基金会(最新可用版本) HOT 2
- Capacitor 支付成功没有回调 HOT 1
- Cordova打包的iOS应用,调用微信支付时,出现“发送请求失败”错误
- 在ios中,使用微信分享好友或微信分享朋友圈,造成内存泄漏,程序卡死退出
- Can Cordova10 be supported? HOT 1
- capacitor 5.0 项目中可以使用该插件吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-wechat.