我需要ccavenue支付网关集成Flutter.官方链接https://pub.dev/packages/cc_avenue但它显示PlatformException。
官方链接https://pub.dev/packages/cc_avenue但它显示PlatformException。
E/MethodChannel#cc_avenue(25116):at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue $0 $io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)E/MethodChannel#cc_avenue(25116):at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)E/MethodChannel#cc_avenue(25116):at android.os.Handler.handleCallback(Handler.java:942)E/MethodChannel#cc_avenue(25116):at android.os.Handler.dispatchMessage(Handler.java:99)E/MethodChannel#cc_avenue(25116):at android.os.Looper.loopOnce(Looper.java:201)E/MethodChannel#cc_avenue(25116):at android.os.Looper.loop(Looper.java:288)E/MethodChannel#cc_avenue(25116):at android.app.ActivityThread.main(ActivityThread.java:7872)E/MethodChannel#cc_avenue(25116):at java.lang.reflect.Method.invoke(Native Method)E/MethodChannel#cc_avenue(25116):at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)E/MethodChannel#cc_avenue(25116):at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)E/MethodChannel#cc_avenue(25116):无法处理方法调用E/MethodChannel#cc_avenue(25116):android.content.ActivityNotFoundException:无法找到显式活动类{com.example.ccaven/com.avinash.gotluru.cc_avenue.Framework.WebViewActivity};您是否在AndroidManifest.xml中声明了此活动,或者您的意图与声明的不匹配?E/MethodChannel#cc_avenue(25116):在android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2197)E/MethodChannel#cc_avenue(25116):at android.app.Instrumentation.execStartActivity(Instrumentation.java:1839)E/MethodChannel#cc_avenue(25116):at android.app.Activity.startActivityForResult(Activity.java:5471)E/MethodChannel#cc_avenue(25116):at android.app.Activity.startActivityForResult(Activity.java:5429)E/MethodChannel#cc_avenue(25116):at android.app.Activity.startActivity(Activity.java:5927)E/MethodChannel#cc_avenue(25116):at android.app.Activity.startActivity(Activity.java:5894)E/MethodChannel#cc_avenue(25116):com.avinash.gotluru.cc_avenue.CcAvenuePlugin.cCAvenueInIt(CcAvenuePlugin.java:78)E/MethodChannel#cc_avenue(25116):在com.avinash.gotluru.cc_avenue.CcAvenuePlugin.onMethodCall(CcAvenuePlugin.java:60)E/MethodChannel#cc_avenue(25116):at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)E/MethodChannel#cc_avenue(25116):at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)E/MethodChannel#cc_avenue(25116):at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue $0 $io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)E/MethodChannel#cc_avenue(25116):at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)E/MethodChannel#cc_avenue(25116):at android.os.Handler.handleCallback(Handler.java:942)E/MethodChannel#cc_avenue(25116):at android.os.Handler.dispatchMessage(Handler.java:99)E/MethodChannel#cc_avenue(25116):at android.os.Looper.loopOnce(Looper.java:201)E/MethodChannel#cc_avenue(25116):at android.os.Looper.loop(Looper.java:288)E/MethodChannel#cc_avenue(25116):at android.app.ActivityThread.main(ActivityThread.java:7872)E/MethodChannel#cc_avenue(25116):at java.lang.reflect.Method.invoke(Native Method)E/MethodChannel#cc_avenue(25116):at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)E/MethodChannel#cc_avenue(25116):在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
1条答案
按热度按时间2sbarzqh1#
你试试这个密码
您的AndroidManifest.xml添加此行
看看如何实现这个https://github.com/avinash-gotluru/cc_avenue/blob/main/example/android/app/src/main/AndroidManifest.xml
如果您添加此代码,然后flutter clean,flutter pub get,并关闭您的框架,然后再次打开flutter clean和flutter pub get,然后删除您的手机应用程序并重建此应用程序