gstory0404 / flutter_tencentad

腾讯优量汇(广点通)广告 Flutter版本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

加载广告引起崩溃

liangdas opened this issue · comments

[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.

检查一下 FlutterTencentad.register 是否正确初始化成功?

是的我没有初始化,不过这样调用会引起崩溃的话不太好

最近有个版本 后续会处理

@liangdas 更新下插件