lishuhao / sy_flutter_alipay Goto Github PK
View Code? Open in Web Editor NEW支付宝flutter插件
License: Other
支付宝flutter插件
License: Other
如题,
目前在android上,如果未安装支付宝app,会闪退。
异常信息:
E/libc (31011): Access denied finding property "vendor.gralloc.disable_ahardware_buffer"
W/RenderThread(31011): type=1400 audit(0.0:1858): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=14862 scontext=u:r:untrusted_app:s0:c168,c256,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
W/System.err(31011): java.lang.SecurityException: getDeviceId
W/System.err(31011): at android.os.Parcel.createException(Parcel.java:1950)
W/System.err(31011): at android.os.Parcel.readException(Parcel.java:1918)
W/System.err(31011): at android.os.Parcel.readException(Parcel.java:1868)
W/System.err(31011): at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:5407)
W/System.err(31011): at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:1240)
W/System.err(31011): at com.alipay.sdk.util.a.(SourceFile:38)
W/System.err(31011): at com.alipay.sdk.util.a.a(SourceFile:27)
W/System.err(31011): at com.alipay.sdk.tid.b.a(SourceFile:79)
W/System.err(31011): at com.alipay.sdk.app.statistic.c.(SourceFile:1229)
W/System.err(31011): at com.alipay.sdk.app.statistic.a.a(SourceFile:21)
W/System.err(31011): at com.alipay.sdk.app.PayTask.(SourceFile:58)
W/System.err(31011): at alipay.flutter.isanye.cn.syflutteralipay.SyFlutterAlipayPlugin$1.run(SyFlutterAlipayPlugin.java:60)
W/System.err(31011): at java.lang.Thread.run(Thread.java:764)
W/Thread-2(31011): type=1400 audit(0.0:1859): avc: denied { read } for name="version" dev="proc" ino=4026532066 scontext=u:r:untrusted_app:s0:c168,c256,c512,c768 tcontext=u:object_r:proc_version:s0 tclass=file permissive=0
E/AndroidRuntime(31011): FATAL EXCEPTION: Thread-2
E/AndroidRuntime(31011): Process: net.zituo.scc.flutter_demo, PID: 31011
E/AndroidRuntime(31011): java.lang.IllegalStateException: Reply already submitted
E/AndroidRuntime(31011): at io.flutter.embedding.engine.dart.DartMessenger$Reply.reply(DartMessenger.java:135)
E/AndroidRuntime(31011): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.error(MethodChannel.java:230)
E/AndroidRuntime(31011): at alipay.flutter.isanye.cn.syflutteralipay.SyFlutterAlipayPlugin$1.run(SyFlutterAlipayPlugin.java:65)
E/AndroidRuntime(31011): at java.lang.Thread.run(Thread.java:764)
I/Process (31011): Sending signal. PID: 31011 SIG: 9
安卓支付宝支付返回时,插件内部开辟了子线程,返回的时候没有回到主线程,所以导致崩溃。在插件内部成功和异常的方法都放在主线程中,就没有问题了。
调用SyFlutterAlipay.pay之后报4000,payInfo的参数确定过是没有问题的,求解决~
唤起支付宝,报系统繁忙(ALIN10146)
以下是查到的反馈:
system error page
Please replace this default page in your project.
MSG CODE: common.uncaughtException
EXCEPTION CODE:
ERR MSG: JVM Reference[class com.alipay.openevent.integration.kbasecore.KnowledgeCutflowDrm] cant not find the corresponding JVM service. Please check if there is a SOFA module publish the corresponding JVM service. If this exception occurred when the application starts up, please add Require-Module to SOFA module's MANIFEST.MF to indicate the startup dependency of SOFA modules.
新手求解需要改哪里?
老铁,需要支付宝登录功能 授权
var result = await SyFlutterAlipay.pay(
payInfo,
urlScheme: 'appname', //前面配置的urlScheme
isSandbox: true //是否是沙箱环境,只对android有效
);
print(result);
print(result)没有任何值,也不知道返回没有,Android没有问题。支付宝支付成功后也成功跳转APP,但是接收不到返回值。
从服务器获取payInfo后调用方法成功支付闪退(sandbox模式下)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.