Air 来自distriqt广告扩展的Java错误

Air 来自distriqt广告扩展的Java错误,air,ane,distriqt,Air,Ane,Distriqt,我正在尝试让distriqt广告扩展在我的AIR应用程序中工作。 在我尝试我的应用程序的每台设备上,我都会得到广告、服务、间隙、isSupported返回false。 在一台设备上,我也会遇到这些Java错误,这可能是以下原因: Error #2044: Unhandled error:. text=Attempt to invoke virtual method 'java.lang.String com.adobe.fre.FREObject.getAsString()' on a null

我正在尝试让distriqt广告扩展在我的AIR应用程序中工作。 在我尝试我的应用程序的每台设备上,我都会得到
广告、服务、间隙、isSupported
返回
false
。 在一台设备上,我也会遇到这些Java错误,这可能是以下原因:

Error #2044: Unhandled error:. text=Attempt to invoke virtual method 'java.lang.String com.adobe.fre.FREObject.getAsString()' on a null object reference
Error #2044: Unhandled error:. text=Attempt to invoke interface method 'boolean com.distriqt.extension.adverts.platforms.AdvertPlatform.isInterstitialsSupported()' on a null object reference
我检查并再次检查了所有必需的扩展都列在应用程序描述符xml的
部分,并且它们实际上包含在APK中

以下是AS代码的摘录:

    if (Adverts.isSupported)
    {
        var r:int = GoogleApiAvailability.instance.isGooglePlayServicesAvailable();
        if (r == ConnectionResult.SUCCESS)
        {
            Adverts.service.initialisePlatform(AdvertPlatform.PLATFORM_ADMOB, myAppId);
            if (Adverts.service.interstitials.isSupported)
            {
                // etc...
            }
            else trace("Interstitials not supported");
我做错了什么,或者我能做些什么来发现我做错了什么


(由于声誉不足,无法将
广告
标记添加到此问题)

检查您的
myAppId
的值


第一个错误将表明它是
null
,并且
initialisePlatform()
调用失败。

检查您的
myAppId
的值是多少

第一个错误表明它是
null
,并且
initialisePlatform()
调用失败