腾讯优量汇广告 Flutter版本

Overview

腾讯优量汇广告 Flutter版本

简介

flutter_tencentad是一款集成了腾讯优量汇广告Android和iOSSDK的Flutter插件,方便直接调用优量汇广告SDK方法快速开发

由于优量汇需要上架应用才能使用广告,所以demo不能直接运行,体验demo

官方文档

本地环境

[✓] Flutter (Channel stable, 2.2.3, on macOS 11.5.1 20G80 darwin-x64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.56.2)
[✓] Connected device (2 available)

集成步骤

1、pubspec.yaml

flutter_tencentad: ^0.0.6

引入

import 'package:flutter_tencentad/flutter_tencentad.dart';

2、Android

SDK(4.380.1250)已配置插件中无需额外配置,只需要在android目录中AndroidManifest.xml配置

">
<manifest ···
    xmlns:tools="http://schemas.android.com/tools"
    ···>
  <application
        tools:replace="android:label">

3、IOS

开发中

使用

1、SDK初始化

await FlutterTencentad.register(
  appId: "1200009850", //appid
  debug: true, //是否显示日志log
);

2、获取SDK版本

await FlutterTencentad.getSDKVersion();

3、开屏广告

FlutterTencentad.splashAdView(
    //广告id
    codeId: "4052216802299999",
    ////设置开屏广告从请求到展示所花的最大时长(并不是指广告曝光时长),取值范围为[1500, 5000]ms
    fetchDelay: 3000,
    //广告回调
    callBack: FlutterTencentadSplashCallBack(
    onShow: () {
      print("开屏广告显示");
    },
    onADTick: (time) {
      print("开屏广告倒计时剩余时间 $time");
    },
    onClick: () {
      print("开屏广告点击");
    },
    onClose: () {
      print("开屏广告关闭");
      Navigator.pop(context);
    },
      onExpose: () {
      print("开屏广告曝光");
    },
      onFail: (code, message) {
      print("开屏广告失败  $code $message");
},
),
),

4、banner广告

FlutterTencentad.bannerAdView(
    //广告id
    codeId: "8042711873318113",
    //广告宽 单位dp
    viewWidth: 500,
    //广告高  单位dp   宽高比应该为6.4:1
    viewHeight: 100,
    // 广告回调
    callBack: FlutterTencentadBannerCallBack(
        onShow: () {
          print("Banner广告显示");
        },
        onFail: (code, message) {
          print("Banner广告错误 $code $message");
        },
        onClose: () {
          print("Banner广告关闭");
        },
        onExpose: () {
          print("Banner广告曝光");
        },
        onClick: () {
          print("Banner广告点击");
        },
    ),
),

5、动态信息流/横幅/视频贴片广告

FlutterTencentad.expressAdView(
              //广告id
              codeId: "4072918853903023",
              //广告宽 单位dp
              viewWidth: 400,
              //广告高  单位dp
              viewHeight: 300,
              //回调事件
              callBack: FlutterTencentadExpressCallBack(
                onShow: () {
                  print("动态信息流广告显示");
                },
                onFail: (code, message) {
                  print("动态信息流广告错误 $code $message");
                },
                onClose: () {
                  print("动态信息流广告关闭");
                },
                onExpose: () {
                  print("动态信息流广告曝光");
                },
                onClick: () {
                  print("动态信息流广告点击");
                },
              )
            ),

6、激励视频广告

预加载激励视频广告

await FlutterTencentad.loadRewardVideoAd(
    //广告id
    codeId: "5042816813706194",
);

显示激励视频广告

  await FlutterTencentad.showRewardVideoAd();

监听激励视频结果

 FlutterTencentAdStream.initAdStream(
      //激励广告
    flutterTencentadRewardCallBack: FlutterTencentadRewardCallBack(
        onShow: () {
          print("激励广告显示");
        },
        onClick: () {
          print("激励广告点击");
        },
        onFail: (code, message) {
          print("激励广告失败 $code $message");
        },
        onClose: () {
          print("激励广告关闭");
        },
        onReady: () async {
          print("激励广告预加载准备就绪");
          await FlutterTencentad.showRewardVideoAd();
        },
        onUnReady: () {
          print("激励广告预加载未准备就绪");
        },
        onVerify: (transId) {
          print("激励广告奖励  $transId");
        },
      ),
    );

7、插屏广告

预加载插屏广告

await FlutterTencentad.loadUnifiedInterstitialAD(
    //广告id
    codeId: "9062813863614416",
    //是否全屏
    isFullScreen: false,
);

显示插屏广告

  await FlutterTencentad.showUnifiedInterstitialAD();

插屏广告结果监听

FlutterTencentAdStream.initAdStream(
    flutterTencentadInteractionCallBack: FlutterTencentadInteractionCallBack(
        onShow: () {
          print("插屏广告显示");
        },
        onClick: () {
          print("插屏广告点击");
        },
        onFail: (code, message) {
          print("插屏广告失败 $code $message");
        },
        onClose: () {
          print("插屏广告关闭");
        },
        onReady: () async {
          print("插屏广告预加载准备就绪");
          await FlutterTencentad.showUnifiedInterstitialAD();
        },
        onUnReady: () {
          print("插屏广告预加载未准备就绪");
        },
  ),
);

版本更新

更新日志

插件链接

插件 地址
穿山甲广告插件 flutter_unionad
腾讯优量汇广告插件 flutter_tencentad
聚合广告插件 flutter_universalad

联系方式

Comments
  • 如何实现 应用下载弹窗确认?请求实现此功能

    如何实现 应用下载弹窗确认?请求实现此功能

    https://developers.adnet.qq.com/doc/android/union/union_download_confirm 在广告播放中(广告展示和落地页),点击触发广告下载时对开发者注册的回调函数进行回调,开发者可以使用回调获取应用名称、版本等相关信息,并进行弹窗提示用户是否确认进行下载。 适用场景:在合规的场景,点击下载类广告必须向用户展示应用信息并二次确认是否下载,而sdk的内部弹窗的格式不符合开发者UI要求的时候。

    有助于应用更加合理合规

    opened by dev-zl 8
  • 动态信息流/横幅/视频贴片广告 报错

    动态信息流/横幅/视频贴片广告 报错

    I/flutter (10412): 动态信息流广告显示 W/ContentCatcher(10412): Failed to notify a WebView E/InputMethodManager(10412): b/117267690: Failed to get fallback IMM with expected displayId=24 actual IMM#displayId=0 view=com.qq.e.c omm.plugin.I.c{4007378 VFED..C.. ........ 0,0-1079,872} E/WindowManager(10412): BadTokenException or InvalidDisplayException, clean up. E/MethodChannel#flutter/platform_views(10412): Failed to handle method call E/MethodChannel#flutter/platform_views(10412): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os. Binder@e33aaa8 is not valid; is your activity running? E/MethodChannel#flutter/platform_views(10412): at android.view.ViewRootImpl.setView(ViewRootImpl.java:991) E/MethodChannel#flutter/platform_views(10412): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387) E/MethodChannel#flutter/platform_views(10412): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:96) E/MethodChannel#flutter/platform_views(10412): at android.app.Dialog.show(Dialog.java:344) E/MethodChannel#flutter/platform_views(10412): at android.app.Presentation.show(Presentation.java:260) E/MethodChannel#flutter/platform_views(10412): at io.flutter.plugin.platform.VirtualDisplayController.resize(VirtualDisplayController .java:161) E/MethodChannel#flutter/platform_views(10412): at io.flutter.plugin.platform.PlatformViewsController$1.resizePlatformView(PlatformVie wsController.java:285) E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.resize(PlatformVi ewsChannel.java:138) E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(Plat formViewsChannel.java:65) E/MethodChannel#flutter/platform_views(10412): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodCh annel.java:233) E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger. java:85) E/MethodChannel#flutter/platform_views(10412): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818) E/MethodChannel#flutter/platform_views(10412): at android.os.MessageQueue.nativePollOnce(Native Method) E/MethodChannel#flutter/platform_views(10412): at android.os.MessageQueue.next(MessageQueue.java:336) E/MethodChannel#flutter/platform_views(10412): at android.os.Looper.loop(Looper.java:183) E/MethodChannel#flutter/platform_views(10412): at android.app.ActivityThread.main(ActivityThread.java:7592) E/MethodChannel#flutter/platform_views(10412): at java.lang.reflect.Method.invoke(Native Method) E/MethodChannel#flutter/platform_views(10412): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) E/MethodChannel#flutter/platform_views(10412): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) E/flutter (10412): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: PlatformException(error, Unable to add window -- token android.os.Binder@e33aaa8 is not valid; is your activity running?, null, android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.Binder@e33aaa8 is not valid; is your activity running? E/flutter (10412): at android.view.ViewRootImpl.setView(ViewRootImpl.java:991) E/flutter (10412): at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:387) E/flutter (10412): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:96) E/flutter (10412): at android.app.Dialog.show(Dialog.java:344) E/flutter (10412): at android.app.Presentation.show(Presentation.java:260) E/flutter (10412): at io.flutter.plugin.platform.VirtualDisplayController.resize(VirtualDisplayController.java:161) E/flutter (10412): at io.flutter.plugin.platform.PlatformViewsController$1.resizePlatformView(PlatformViewsController.java:285) E/flutter (10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.resize(PlatformViewsChannel.java:138) E/flutter (10412): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:65 ) E/flutter (10412): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233) E/flutter (10412): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85) E/flutter (10412): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818) E/flutter (10412): at android.os.MessageQueue.nativePollOnce(Native Method) E/flutter (10412): at android.os.MessageQueue.next(MessageQueue.java:336) E/flutter (10412): at android.os.Looper.loop(Looper.java:183) E/flutter (10412): at android.app.ActivityThread.main(ActivityThread.java:7592) E/flutter (10412): at java.lang.reflect.Method.invoke(Native Method) E/flutter (10412): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539) E/flutter (10412): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950) E/flutter (10412): ) E/flutter (10412): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:597:7) E/flutter (10412): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:158:18) E/flutter (10412): E/flutter (10412): #2 TextureAndroidViewController.setSize (package:flutter/src/services/platform_views.dart:1009:5) E/flutter (10412): E/flutter (10412): #3 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:193:7) E/flutter (10412): E/flutter (10412): I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver I/Zeus/receiver(10412): action[android.intent.action.BATTERY_CHANGED] match success ! invoke onReceiver I/TeaLog (10412): p worked:true 60000 I/TeaLog (10412): s0 0 I/TeaLog (10412): s worked:true 60000 I/Zeus/receiver(10412): ZeusTransformUtils-registerReceiver-execute I/Zeus/receiver(10412): ZeusTransformUtils-registerReceiver-execute

    opened by dev-zl 6
  • 激励视频点击<跳过>后的错误: Application attempted to call on a destroyed WebView

    激励视频点击<跳过>后的错误: Application attempted to call on a destroyed WebView

    感谢作者的无私奉献!

    插件版本 ^1.2.2

    日志

    W/cr_AwContents( 6725): Application attempted to call on a destroyed WebView
    W/cr_AwContents( 6725): java.lang.Throwable
    W/cr_AwContents( 6725): 	at org.chromium.android_webview.AwContents.t(chromium-TrichromeWebViewGoogle.apk-stable-410410683:2)
    W/cr_AwContents( 6725): 	at Mt.loadingStateChanged(chromium-TrichromeWebViewGoogle.apk-stable-410410683:2)
    W/cr_AwContents( 6725): 	at android.os.MessageQueue.nativePollOnce(Native Method)
    W/cr_AwContents( 6725): 	at android.os.MessageQueue.next(MessageQueue.java:339)
    W/cr_AwContents( 6725): 	at android.os.Looper.loop(Looper.java:199)
    W/cr_AwContents( 6725): 	at android.app.ActivityThread.main(ActivityThread.java:8292)
    W/cr_AwContents( 6725): 	at java.lang.reflect.Method.invoke(Native Method)
    W/cr_AwContents( 6725): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
    W/cr_AwContents( 6725): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
    
    

    flutter doctor -v

    $ flutter doctor -v                                                                                             
    Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
    [✓] Flutter (Channel unknown, 2.10.5, on Manjaro Linux 5.15.60-1-MANJARO, locale zh_CN.UTF-8)
        • Flutter version 2.10.5 at /home/peng/dev-tools/flutter
        • Upstream repository unknown
        • Framework revision 5464c5bac7 (4 个月前), 2022-04-18 09:55:37 -0700
        • Engine revision 57d3bac3dd
        • Dart version 2.16.2
        • DevTools version 2.9.2
        • Pub download mirror https://pub.flutter-io.cn
        • Flutter download mirror https://storage.flutter-io.cn
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /home/peng/dev-tools/Android/Sdk/
        • Platform android-31, build-tools 31.0.0
        • ANDROID_HOME = /home/peng/dev-tools/Android/Sdk
        • Java binary at: /home/peng/dev-tools/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • CHROME_EXECUTABLE = /usr/bin/google-chrome-stable
    
    [✓] Android Studio (version 2021.2)
        • Android Studio at /home/peng/dev-tools/android-studio
        • Flutter plugin version 69.0.2
        • Dart plugin version 212.5744
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    
    [✓] Android Studio
        • Android Studio at /home/peng/dev-tools/android-studio/
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • android-studio-dir = /home/peng/dev-tools/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    
    [✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
        • IntelliJ at /home/peng/dev-tools/idea-IU-212.5457.46
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] VS Code
        • VS Code at /snap/code/current
        • Flutter extension version 3.46.0
    
    [✓] Connected device (2 available)
        • PCNM00 (mobile) • 9b844f5 • android-arm64  • Android 11 (API 30)
        • Chrome (web)    • chrome  • web-javascript • Google Chrome 104.0.5112.101
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!
    
    
    opened by zanpen2000 4
  • 加载广告引起崩溃

    加载广告引起崩溃

    [Error] [GDTMob:GDTNativeExpressAdImp] AppId is empty. Unsupported value: Error Domain=GDTAdErrorDomain Code=4021 "appId 错误,未正确注册 [GDTSDKConfig registerAppId:]" UserInfo={NSLocalizedDescription=appId 错误,未正确注册 [GDTSDKConfig registerAppId:]} of type NSError *** Assertion failure in -[FlutterStandardWriter writeValue:], FlutterStandardCodec.mm:330 *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unsupported value for standard codec' *** First throw call stack: (0x193db186c 0x1a8d20c50 0x193cb7000 0x19504b91c 0x10cb6eb28 0x10cb6f014 0x10cb6be88 0x100f62b84 0x100f62ca0 0x10b8cff50 0x10b7b3e38 0x10b7b3ccc 0x10b7b28e8 0x10b8cfb8c 0x100f61464 0x100f60b18 0x100f5ff3c 0x100f65888 0x100f6597c 0x10c2ea298 0x10c2e57ec 0x10cb6c074 0x10c30bb78 0x10c60af5c 0x10c5aa35c 0x10c5aca14 0x193d2dfa0 0x193d2dba0 0x193d2cffc 0x193d26ee4 0x193d2621c 0x1ab82a784 0x196764fe0 0x19676a854 0x10040cc94 0x1939e66b0) libc++abi.dylib: terminating with uncaught exception of type NSException

    • thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT frame #0: 0x00000001c1b28414 libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib__pthread_kill: -> 0x1c1b28414 <+8>: b.lo 0x1c1b28434 ; <+40> 0x1c1b28418 <+12>: pacibsp 0x1c1b2841c <+16>: stp x29, x30, [sp, #-0x10]! 0x1c1b28420 <+20>: mov x29, sp Target 0: (Runner) stopped. Lost connection to device.
    opened by liangdas 4
  • flutter pub get

    flutter pub get

    The plugin flutter_tencentad doesn't have a main class defined in /Volumes/Sources/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_tencentad-1.2.7/android/src/main/java/com/gstory/flutter_tencentad/FlutterTencentadPlugin.java or /Volumes/Sources/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_tencentad-1.2.7/android/src/main/kotlin/com/gstory/flutter_tencentad/FlutterTencentadPlugin.kt. This is likely to due to an incorrect androidPackage: com.gstory.flutter_tencentad or mainClass entry in the plugin's pubspec.yaml. If you are the author of this plugin, fix the androidPackage entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile. exit code 1

    opened by PokiFOX 3
  • 信息流广告异常: E/gdt_ad_mob( 9980): ADEvent 参数为空,type:109

    信息流广告异常: E/gdt_ad_mob( 9980): ADEvent 参数为空,type:109

    部分日志

    I/chromium( 9980): [INFO:CONSOLE(31)] "%c[LOG] [1661004506884  Sat Aug 20 2022 22:08:26 GMT+0800 (中国标准时间)] 
    I/chromium( 9980):  color: green @DSLTagDefine::MSG DSLTagDefine function is runned", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "console.groupEnd", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "err", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "%c[INFO] [1661004506896  Sat Aug 20 2022 22:08:26 GMT+0800 (中国标准时间)] 
    I/chromium( 9980):  color: blue; @tempMob::updateDownloadInfo [object Object]", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "console.groupEnd", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    E/gdt_ad_mob( 9980): ADEvent 参数为空,type:109
    V/InputMethodManager( 9980): b/117267690: Failed to get fallback IMM with expected displayId=547 actual IMM#displayId=0 view=com.qq.e.comm.plugin.L.b{4aa8464 VFED..C.. ........ 0,0-1081,826}
    D/ColorViewRootUtil( 9980): initSwipState, isDisplayCompatApp false
    D/ColorViewRootUtil( 9980): don't initSwipState because display 548 is not default display
    D/WindowManager( 9980): Add to mViews: DecorView@6bffbfc[MainActivity],pkg= com.zerone.sentence
    V/OplusZoomWindowDecorViewHelper( 9980): setLastReportedMergedConfiguration mZoomDisplayHeight: 842 getDecorView.DecorView@6bffbfc[MainActivity]
    D/ColorViewRootUtil( 9980): initSwipState, isDisplayCompatApp false
    D/ColorViewRootUtil( 9980): don't initSwipState because display 549 is not default display
    D/WindowManager( 9980): Add to mViews: DecorView@1ed567e[MainActivity],pkg= com.zerone.sentence
    V/OplusZoomWindowDecorViewHelper( 9980): setLastReportedMergedConfiguration mZoomDisplayHeight: 840 getDecorView.DecorView@1ed567e[MainActivity]
    I/chromium( 9980): [INFO:CONSOLE(31)] "%c[LOG] [1661004508733  Sat Aug 20 2022 22:08:28 GMT+0800 (中国标准时间)] 
    I/chromium( 9980):  color: green @DSLTagDefine::MSG DSLTagDefine function is runned", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "console.groupEnd", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "err", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "%c[INFO] [1661004508748  Sat Aug 20 2022 22:08:28 GMT+0800 (中国标准时间)] 
    I/chromium( 9980):  color: blue; @tempMob::updateDownloadInfo [object Object]", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    I/chromium( 9980): [INFO:CONSOLE(31)] "console.groupEnd", source: https://qzs.gdtimg.com/union/res/union_temp_v2/page/ANTempMob/tempMob.c33872e2ec399eef7453219c375d6ffb.1659340444457.html (31)
    E/gdt_ad_mob( 9980): ADEvent 参数为空,type:109
    V/InputMethodManager( 9980): b/117267690: Failed to get fallback IMM with expected displayId=549 actual IMM#displayId=0 view=com.qq.e.comm.plugin.L.b{5e1285c VFED..C.. ........ 0,0-1081,728}
    D/ColorViewRootUtil( 9980): initSwipState, isDisplayCompatApp false
    D/ColorViewRootUtil( 9980): don't initSwipState because display 550 is not default display
    D/WindowManager( 9980): Add to mViews: DecorView@cb826f4[MainActivity],pkg= com.zerone.sentence
    V/OplusZoomWindowDecorViewHelper( 9980): setLastReportedMergedConfiguration mZoomDisplayHeight: 842 getDecorView.DecorView@cb826f4[MainActivity]
    
    

    $ flutter doctor -v

    $ flutter doctor -v                                                                          
    Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
    [✓] Flutter (Channel unknown, 2.10.5, on Manjaro Linux 5.15.60-1-MANJARO, locale zh_CN.UTF-8)
        • Flutter version 2.10.5 at /home/peng/dev-tools/flutter
        • Upstream repository unknown
        • Framework revision 5464c5bac7 (4 个月前), 2022-04-18 09:55:37 -0700
        • Engine revision 57d3bac3dd
        • Dart version 2.16.2
        • DevTools version 2.9.2
        • Pub download mirror https://pub.flutter-io.cn
        • Flutter download mirror https://storage.flutter-io.cn
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /home/peng/dev-tools/Android/Sdk/
        • Platform android-31, build-tools 31.0.0
        • ANDROID_HOME = /home/peng/dev-tools/Android/Sdk
        • Java binary at: /home/peng/dev-tools/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • CHROME_EXECUTABLE = /usr/bin/google-chrome-stable
    
    [✓] Android Studio (version 2021.2)
        • Android Studio at /home/peng/dev-tools/android-studio
        • Flutter plugin version 69.0.2
        • Dart plugin version 212.5744
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    
    [✓] Android Studio
        • Android Studio at /home/peng/dev-tools/android-studio/
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • android-studio-dir = /home/peng/dev-tools/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
    
    [✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
        • IntelliJ at /home/peng/dev-tools/idea-IU-212.5457.46
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] VS Code
        • VS Code at /snap/code/current
        • Flutter extension version 3.46.0
    
    [✓] Connected device (2 available)
        • PCNM00 (mobile) • 9b844f5 • android-arm64  • Android 11 (API 30)
        • Chrome (web)    • chrome  • web-javascript • Google Chrome 104.0.5112.79
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!
    
    
    opened by zanpen2000 3
  • Fail to getfactory implement instance for interface:com.qq.e.comm.pi.POFactory

    Fail to getfactory implement instance for interface:com.qq.e.comm.pi.POFactory

    E/gdt_ad_mob( 7394): Fail to getfactory implement instance for interface:com.qq.e.comm.pi.POFactory E/gdt_ad_mob( 7394): com.qq.e.comm.managers.plugin.e: Fail to getfactory implement instance for interface:com.qq.e.comm.pi.POFactory E/gdt_ad_mob( 7394): at com.qq.e.comm.managers.plugin.PM.getFactory(:4) E/gdt_ad_mob( 7394): at com.qq.e.comm.managers.plugin.PM.getPOFactory(Unknown Source:11) E/gdt_ad_mob( 7394): at com.qq.e.comm.managers.a.run(Unknown Source:6) E/gdt_ad_mob( 7394): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462) E/gdt_ad_mob( 7394): at java.util.concurrent.FutureTask.run(FutureTask.java:266) E/gdt_ad_mob( 7394): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/gdt_ad_mob( 7394): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/gdt_ad_mob( 7394): at java.lang.Thread.run(Thread.java:919) E/gdt_ad_mob( 7394): Caused by: java.lang.reflect.InvocationTargetException E/gdt_ad_mob( 7394): at java.lang.reflect.Method.invoke(Native Method) E/gdt_ad_mob( 7394): ... 8 more E/gdt_ad_mob( 7394): Caused by: java.lang.ExceptionInInitializerError E/gdt_ad_mob( 7394): at yaq.pro.getobjresult(Native Method) E/gdt_ad_mob( 7394): at com.qq.e.comm.plugin.POFactoryImpl.getInstance(Unknown Source:11) E/gdt_ad_mob( 7394): ... 9 more E/gdt_ad_mob( 7394): Caused by: java.lang.RuntimeException: load lib error E/gdt_ad_mob( 7394): at yaq.pro.(pro.java:200) E/gdt_ad_mob( 7394): ... 11 more

    opened by BlackJia 3
  • 安卓信息流广告的异常: NameNotFoundException: com.tencent.mm

    安卓信息流广告的异常: NameNotFoundException: com.tencent.mm

    感谢插件作者的辛勤工作!

    Exception

    W/System.err(21690): android.content.pm.PackageManager$NameNotFoundException: com.tencent.mm
    W/System.err(21690):    at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:237)
    W/System.err(21690):    at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:204)
    W/System.err(21690):    at yaq.pro.getZresult(Native Method)
    W/System.err(21690):    at com.qq.e.comm.plugin.N.b.a(Unknown Source:13)
    W/System.err(21690):    at com.qq.e.comm.plugin.util.t0.a(A:11)
    W/System.err(21690):    at com.qq.e.comm.plugin.util.t0.a(A:18)
    W/System.err(21690):    at com.qq.e.comm.plugin.b.d.b(A:21)
    W/System.err(21690):    at com.qq.e.comm.plugin.b.d.a(A:130)
    W/System.err(21690):    at com.qq.e.comm.plugin.b.d.a(A:63)
    W/System.err(21690):    at yaq.pro.getVresult(Native Method)
    W/System.err(21690):    at com.qq.e.comm.plugin.F.d.a(Unknown Source:18)
    W/System.err(21690):    at yaq.pro.getVresult(Native Method)
    W/System.err(21690):    at com.qq.e.comm.plugin.F.d.a(Unknown Source:15)
    W/System.err(21690):    at com.qq.e.comm.plugin.gdtnativead.h.loadAd(A:32)
    W/System.err(21690):    at com.qq.e.comm.plugin.gdtnativead.h.loadAd(A:1)
    W/System.err(21690):    at com.qq.e.comm.plugin.gdtnativead.g.loadAd(A:2)
    W/System.err(21690):    at com.qq.e.ads.nativ.NativeExpressAD.a(Unknown Source:86)
    W/System.err(21690):    at com.qq.e.ads.nativ.NativeExpressAD.a(Unknown Source:2)
    W/System.err(21690):    at com.qq.e.ads.AbstractAD$1$1.run(Unknown Source:73)
    W/System.err(21690):    at android.os.Handler.handleCallback(Handler.java:938)
    W/System.err(21690):    at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err(21690):    at android.os.Looper.loop(Looper.java:263)
    W/System.err(21690):    at android.app.ActivityThread.main(ActivityThread.java:8292)
    W/System.err(21690):    at java.lang.reflect.Method.invoke(Native Method)
    W/System.err(21690):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
    W/System.err(21690):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1006)
    
    

    flutter doctor -v

    $ flutter doctor -v                                                         
    Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
    [✓] Flutter (Channel unknown, 2.10.5, on Manjaro Linux 5.15.60-1-MANJARO, locale zh_CN.UTF-8)
        • Flutter version 2.10.5 at /home/peng/dev-tools/flutter
        • Upstream repository unknown
        • Framework revision 5464c5bac7 (4 个月前), 2022-04-18 09:55:37 -0700
        • Engine revision 57d3bac3dd
        • Dart version 2.16.2
        • DevTools version 2.9.2
        • Pub download mirror https://pub.flutter-io.cn
        • Flutter download mirror https://storage.flutter-io.cn
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
        • Android SDK at /home/peng/dev-tools/Android/Sdk/
        • Platform android-31, build-tools 31.0.0
        • ANDROID_HOME = /home/peng/dev-tools/Android/Sdk
        • Java binary at: /home/peng/dev-tools/android-studio/jre/bin/java
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
        • All Android licenses accepted.
    
    [✓] Chrome - develop for the web
        • CHROME_EXECUTABLE = /usr/bin/google-chrome-stable
    
    [✓] Android Studio (version 2021.1)
        • Android Studio at /home/peng/dev-tools/android-studio
        • Flutter plugin version 69.0.2
        • Dart plugin version 212.5744
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    
    [✓] Android Studio
        • Android Studio at /home/peng/dev-tools/android-studio/
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
        • android-studio-dir = /home/peng/dev-tools/android-studio/
        • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    
    [✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
        • IntelliJ at /home/peng/dev-tools/idea-IU-212.5457.46
        • Flutter plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/9212-flutter
        • Dart plugin can be installed from:
          🔨 https://plugins.jetbrains.com/plugin/6351-dart
    
    [✓] Connected device (2 available)
        • PCNM00 (mobile) • 9b844f5 • android-arm64  • Android 11 (API 30)
        • Chrome (web)    • chrome  • web-javascript • Google Chrome 104.0.5112.79
    
    [✓] HTTP Host Availability
        • All required HTTP hosts are available
    
    • No issues found!
    

    因为报错, 导致列表卡顿。

    opened by zanpen2000 2
  • Linux下找不到 FlutterTencentadPlugin.kt

    Linux下找不到 FlutterTencentadPlugin.kt

    The plugin `flutter_tencentad` doesn't have a main class defined in /home/peng/.pub-cache/hosted/pub.dartlang.org/flutter_tencentad-1.2.1/android/src/main/java/com/gstory/flutter_tencentad/FlutterTencentadPlugin.java or /home/peng/.pub-cache/hosted/pub.dartlang.org/flutter_tencentad-1.2.1/android/src/main/kotlin/com/gstory/flutter_tencentad/FlutterTencentadPlugin.kt. This is likely to due to an incorrect `androidPackage: com.gstory.flutter_tencentad` or `mainClass` entry in the plugin's pubspec.yaml.
    If you are the author of this plugin, fix the `androidPackage` entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile. 
    

    实际路径中文件名为FlutterTencentAdPlugin.kt, 导致报以上错误

    opened by zanpen2000 2
  • 希望支持 奖励式插屏全屏视频(插屏激励) setRewardListener(ADRewfhardListener listener)

    希望支持 奖励式插屏全屏视频(插屏激励) setRewardListener(ADRewfhardListener listener)

    目前插屏视频 不正常监听奖励希望支持 setRewardListener(ADRewardListener listener) 设置奖励监听 https://developers.adnet.qq.com/doc/android/union/union_interstitial#3%E3%80%81%E5%A5%96%E5%8A%B1%E5%BC%8F%E6%8F%92%E5%B1%8F%E5%85%A8%E5%B1%8F%E8%A7%86%E9%A2%91%EF%BC%88%E6%8F%92%E5%B1%8F%E6%BF%80%E5%8A%B1%EF%BC%89

    opened by dev-zl 2
  • 我升级1.0.5版本时候编译失败

    我升级1.0.5版本时候编译失败

    for module 'MySDK' does not include header 'GDTNativeExpressAdNetworkConnectorProtocol.h' [-Wincomplete-umbrella] 24 warnings generated. 24 warnings generated. 28 warnings generated. Undefined symbols for architecture arm64: "OBJC_CLASS$_GDTSDKConfig", referenced from: objc-class-ref in flutter_tencentad(SwiftFlutterTencentadPlugin.o) "OBJC_CLASS$_GDTServerSideVerificationOptions", referenced from: objc-class-ref in flutter_tencentad(RewardedVideoAd.o) "OBJC_CLASS$_GDTRewardVideoAd", referenced from: objc-class-ref in flutter_tencentad(RewardedVideoAd.o) "OBJC_CLASS$_GDTSplashAd", referenced from: objc-class-ref in flutter_tencentad(SplashAdView.o) "OBJC_CLASS$_GDTUnifiedInterstitialAd", referenced from: objc-class-ref in flutter_tencentad(InterstitialAd.o) "OBJC_CLASS$_GDTUnifiedBannerView", referenced from: objc-class-ref in flutter_tencentad(BannerAdView.o) "OBJC_CLASS$_GDTNativeExpressAdView", referenced from: objc-class-ref in flutter_tencentad(NativeExpressAdView.o) "OBJC_CLASS$_GDTNativeExpressAd", referenced from: objc-class-ref in flutter_tencentad(NativeExpressAdView.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) note: Using new build system note: Planning note: Build preparation complete note: Building targets in parallel

    opened by liangdas 2
  • Banner广告不显示,有广告占位,但无广告内容

    Banner广告不显示,有广告占位,但无广告内容

    Banner广告不显示,有广告占位,但无广告内容。不过日志里已经提示成功:

    -[TLogUtil print:]
     请求广告条数据成功后调用
    flutter: Banner显示 {alias: ylh, androidId: xxxxxxxx, iosId: xxxxxxxx, probability: 10}
    

    广告也没有调用 失败 或者 关闭 的回调,debug和日志可以确认这一点。所以占位会一直在,就是无内容。

    最近的测试中,在 iOS 100%复现。

    使用时是集成在 GTAds 里使用的,同一个广告位如果是穿山甲的广告正常显示,说明并不是使用的不对。 优量汇里显示该广告位状态正常,优量汇其他广告位显示都正常,加上日志显示广告数据请求成功了,说明广告位本身应该没问题。

    opened by zeewell 4
Owner
gstory
gstory