jpush/jpush-flutter-plugin

错误: 无法将类 JCoreInterface中的方法 testCountryCode应用到给定类型;

Closed this issue · 5 comments

flutter doctor -v

✓] Flutter (Channel stable, 3.13.4, on macOS 14.0 23A339 darwin-arm64, locale
    zh-Hans-CN)
    • Flutter version 3.13.4 on channel stable at
      /Users/bing/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 367f9ea16b (7 days ago), 2023-09-12 23:27:53 -0500
    • Engine revision 9064459a8b
    • Dart version 3.1.2
    • DevTools version 2.25.0
    • Pub download mirror https://pub.flutter-io.cn
    • Flutter download mirror https://storage.flutter-io.cn

报错信息

/.pub-cache/hosted/pub.flutter-io.cn/jpush_flutter-2.4.8/android/src/main/java/com/jiguang/jpush/JPushPlugin.java:209: 错误: 无法将类 JCoreInterface中的方法 testCountryCode应用到给定类型;
        JCoreInterface.testCountryCode(code);
                      ^
  需要: Context,String
  找到:    String
  原因: 实际参数列表和形式参数列表长度不同

我也遇到这样的问题

JCoreInterface.testCountryCode(code);改成 JCoreInterface.testCountryCode(context,code);

同样的问题。。。。

JCoreInterface.testCountryCode(code);改成 JCoreInterface.testCountryCode(context,code);

使用这个已解决 还得官方更新一下最合适

你们这边厂商通道怎么解决的呢?