I initSDK in b4a,but always error,show init GDTADPlugin error
while i initSDK in AS, never error.
the demo project is here.
http://ys-k.ysepan.com/611840552/419675879/k544U644684MILVSg9wT5e/gdt_fetchAdDemo.zip
or
https://github.com/feifeiyu5689/demo/raw/main/gdt_fetchAdDemo.zip
while i initSDK in AS, never error.
Main Code:
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
#MultiDex: True
#AdditionalJar: androidx.appcompat:appcompat
' place at project,should move to Addtional libray, or its real path
#AdditionalJar: C:\_FetchDemo\gdt_fetchAdDemo\GDTSDK.unionNormal.4.482.1352.aar
#End Region
Sub Process_Globals
Private xui As XUI
End Sub
Sub Globals
Dim ad As Panel
End Sub
Sub Activity_Create(FirstTime As Boolean)
Dim jo As JavaObject
jo.InitializeStatic("com.qq.e.comm.managers.GDTAdSdk")
Dim rx As Reflector
jo.RunMethod("init", Array As Object( rx.GetContext, "1200794210") )
' AS: MyApplication_onCreate ,it runs ok.
' GDTAdSdk.init( this, "1200794210");
' but in B4A, ERROR:
'
' Fail To init GDTADPLugin,PluginClassLoader == null;while loading factory impl For:interface com.qq.e.comm.pi.POFactory
' com.qq.e.comm.managers.plugin.e: Fail To init GDTADPLugin,PluginClassLoader == null;while loading factory impl For:interface com.qq.e.comm.pi.POFactory
' at com.qq.e.comm.managers.plugin.PM.getFactory(:4)
Activity.LoadLayout("Layout")
http://ys-k.ysepan.com/611840552/419675879/k544U644684MILVSg9wT5e/gdt_fetchAdDemo.zip
or
https://github.com/feifeiyu5689/demo/raw/main/gdt_fetchAdDemo.zip
Last edited: