You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Flutter集成CCAvenue支付网关遇PlatformException问题求助

解决Flutter集成CCAvenue支付网关的PlatformException问题

问题核心

错误日志明确指向:AndroidManifest.xml中未声明CCAvenue依赖的WebViewActivity,系统找不到该Activity,触发ActivityNotFoundException,进而导致PlatformException。

修复步骤

  • 打开项目里的android/app/src/main/AndroidManifest.xml文件
  • 在<application>标签内部插入以下代码:
<activity
    android:name="com.avinash.gotluru.cc_avenue.Framework.WebViewActivity"
    android:exported="true"
    android:theme="@style/Theme.AppCompat.Light.NoActionBar"/>
  • 保存后先执行flutter clean清除缓存,再重新运行项目flutter run

额外检查点

  • 确认项目包名和错误日志里的com.example.ccaven一致,保证Activity路径正确
  • 检查cc_avenue插件是否为最新版本,避免版本适配问题

内容的提问来源于stack exchange,提问作者Arunkumar Devendiran

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 16:17:07