-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IronSource issue #73
Comments
Can you make sure you have updated the kotlin extension? Also double check you have v34 of the android build tools installed (through the sdk manager in android studio). |
Hi, Thanks for your response. Yes, we have used the latest Kotlin ANE version released on December 5, 2024. We have also updated Android v34. Now the warning note has been resolved, but the same error has come up. Could you inform me if I made any other mistake?. I have shared an error screenshot. varsion : ANE-AndroidSupport-3.0.0 |
Can you double check that you don't have any cached versions of the kotlin extension? I believe that extension is the only place those mentioned jar's should be located . If you are using animate then sometimes you need to clear out the animate application cache. |
Yes, I tried this also, but the issue has not been solved. In my other app, without this Both ANE 'com.distriqt.IronSource' and 'com.distriqt.ironsource.AdQualitySDK' . Kotlin ANE is functioning properly and there are no issues. |
Can you confirm you have v34.0.0 of the android build tools installed? (check via the sdk manager in android studio). |
Okay, not sure what else to suggest, this definitely presents as an old version being used. I can replicate the exact error by using the old version of the kotlin extension. I suggest you double check you have downloaded the latest build and have removed any old versions from your machine. |
Thank you so much for helping me find some old ANE, except for Kotlin. Now the app has been created and installed successfully, but when I try to open it, it will close automatically. I have shared my manifeast file, kindly check for any mistakes I made. <?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/51.1">
<id>com.HFG.A101EscapeGames</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>ironsource</filename>
<description/>
<name>ironsource</name>
<copyright/>
<initialWindow>
<content>ironsource.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>true</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto" >
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_ADSERVICES_ATTRIBUTION" />
<application android:hardwareAccelerated="true">
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
<activity
android:name="com.ironsource.sdk.controller.ControllerActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true" />
<activity
android:name="com.ironsource.sdk.controller.InterstitialActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent" />
<activity
android:name="com.ironsource.sdk.controller.OpenUrlActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent" />
<activity
android:name="com.ironsource.mediationsdk.testSuite.TestSuiteActivity"
android:configChanges="orientation|screenSize"
android:exported="false"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.NoTitleBar" >
<meta-data
android:name="android.webkit.WebView.EnableSafeBrowsing"
android:value="true" />
</activity>
<provider
android:name="com.ironsource.lifecycle.IronsourceLifecycleProvider"
android:authorities="air.com.HFG.A101EscapeGames.IronsourceLifecycleProvider"
android:exported="false" />
</application>
</manifest>
]]></manifestAdditions>
</android>
<extensions>
<extensionID>com.distriqt.IronSource</extensionID>
<extensionID>androidx.core</extensionID>
<extensionID>com.distriqt.Core</extensionID>
<extensionID>com.distriqt.ironsource.AdQualitySDK</extensionID>
<extensionID>com.distriqt.playservices.Base</extensionID>
<extensionID>com.jetbrains.kotlin</extensionID>
<extensionID>com.distriqt.playservices.Ads</extensionID>
<extensionID>com.distriqt.playservices.AdsIdentifier</extensionID>
</extensions>
</application> |
Your manifest should like like the following: <manifest android:installLocation="auto" >
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34"/>
<uses-permission android:name="android.permission.INTERNET"/>
<application android:hardwareAccelerated="true">
<meta-data android:name="android.max_aspect" android:value="2.5"/>
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
</application>
</manifest> |
If that doesn't work, post the logs from the device: https://docs.airnativeextensions.com/docs/tutorials/device-logs |
Can you enable debug outputs from adt and post your adt.log file? Easiest way to do this is to use the configuration tab in the AIR SDK Manager and then look in the toubleshooting tab while building. |
|
Hi, Looks like AIR can't find the Android SDK and is falling back to the legacy build mode which would cause these errors. In the AIR SDK Manager can you ensure you have set the path to the Android Sdk to be the same location as is set in Android Studio. |
Hi, I have shared logcat file please verify and let me know any mistakes I made. |
Why have you added the https://docs.airnativeextensions.com/docs/ironsource/add-the-extension Cheers |
Thanks for response Now we have removed "com.distriqt.playservices.Ads" and now app is installed but While try to cal rewarded ad it shows "rewarded video not avilable". I have shared my manifest and logcat and action script code. please verify and let me know any mistakes I made. Action Script 👍🏻 import com.distriqt.extension.ironsource.IronSource;
import com.distriqt.extension.ironsource.events.RewardedVideoAdEvent;
import com.distriqt.extension.ironsource.events.InterstitialAdEvent;
var IRONSRC_APP_KEY : String = "20eac4e0d";
if (IronSource.isSupported)
{
tet.text = "IronSource Version: " + IronSource.service.version ;
//message( "IronSource Native Version: " + IronSource.instance.nativeVersion );23159580
IronSource.instance.init( IRONSRC_APP_KEY, [ IronSource.REWARDED_VIDEO , IronSource.INTERSTITIAL ] );
IronSource.instance.addEventListener( RewardedVideoAdEvent.OPENED, onRewardedVideoAdOpened );
IronSource.instance.addEventListener( RewardedVideoAdEvent.CLOSED, onRewardedVideoAdClosed );
IronSource.instance.addEventListener( RewardedVideoAdEvent.AVAILABILITY_CHANGED, onRewardedVideoAvailabilityChanged );
//IronSource.instance.addEventListener( RewardedVideoAdEvent.STARTED, onRewardedVideoAdStarted );
//IronSource.instance.addEventListener( RewardedVideoAdEvent.ENDED, onRewardedVideoAdEnded );
IronSource.instance.addEventListener( RewardedVideoAdEvent.REWARDED, onRewardedVideoAdRewarded );
IronSource.instance.addEventListener( RewardedVideoAdEvent.SHOW_FAILED, onRewardedVideoAdShowFailed );
IronSource.instance.addEventListener( RewardedVideoAdEvent.CLICKED, onRewardedVideoAdClicked );
stage.addEventListener( MouseEvent.CLICK, mouseClickHandler, false, 0, true );
IronSource.instance.addEventListener( InterstitialAdEvent.READY, onInterstitialAdReady );
IronSource.instance.addEventListener( InterstitialAdEvent.FAILED, onInterstitialAdLoadFailed );
IronSource.instance.loadInterstitial();
IronSource.instance.validateIntegration();
}
function onInterstitialAdReady( event:DataEvent ):void
{
tet.text = "onInterstitialAdReady" ;
}
function onInterstitialAdLoadFailed( event:DataEvent ):void
{
tet.text ="onInterstitialAdLoadFailed" ;
var errorCode:String;
var errorDescription:String;
if(event.data)
{
var error:Object = JSON.parse(event.data);
errorDescription = error.error_description;
errorCode = error.error_code;
tet.text = errorCode+"";
}
else
{
tet.text = "Rewarded Video not available";
}
}
function stage_resizeHandler( event:Event ):void
{
//_text.width = stage.stageWidth;
//_text.height = stage.stageHeight - 100;
}
function mouseClickHandler( event:MouseEvent ):void
{
if (IronSource.instance.isRewardedVideoAvailable())
{
IronSource.instance.showRewardedVideo();
}
/*if (IronSource.instance.isInterstitialReady())
{
IronSource.instance.showInterstitial();
}*/
else
{
tet.text = "Rewarded Video not available";
}
}
//
// EXTENSION HANDLERS
//
function onRewardedVideoAdShowFailed( event:RewardedVideoAdEvent ):void
{
tet.text ="onRewardedVideoAdShowFailed" ;
var errorCode:String;
var errorDescription:String;
if(event.data)
{
var error:Object = JSON.parse(event.data);
errorDescription = error.error_description;
errorCode = error.error_code;
tet.text = errorCode+"";
}
else
{
tet.text = "Rewarded Video not available";
}
}
function onRewardedVideoAdOpened( event:RewardedVideoAdEvent ):void
{
tet.text ="onRewardedVideoAdOpened" ;
}
function onRewardedVideoAdClosed( event:RewardedVideoAdEvent ):void
{
tet.text = "onRewardedVideoAdClosed" ;
}
function onRewardedVideoAvailabilityChanged( event:RewardedVideoAdEvent ):void
{
tet.text ="onRewardedVideoAvailabilityChanged: " + event.availability ;
}
function onRewardedVideoAdStarted( event:RewardedVideoAdEvent ):void
{
tet.text = "onRewardedVideoAdStarted" ;
}
function onRewardedVideoAdEnded( event:RewardedVideoAdEvent ):void
{
tet.text ="onRewardedVideoAdEnded" ;
}
function onRewardedVideoAdRewarded( event:RewardedVideoAdEvent ):void
{
tet.text ="onRewardedVideoAdRewarded" ;
}
function onRewardedVideoAdClicked( event:RewardedVideoAdEvent ):void
{
tet.text ="onRewardedVideoAdClicked" ;
} Manifest 👍🏻 <?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/51.1">
<id>com.HFG.A101EscapeGames</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>ironsource</filename>
<description/>
<name>ironsource</name>
<copyright/>
<initialWindow>
<content>ironsource.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>true</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto" >
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="com.google.android.gms.permission.AD_ID" />
<application android:hardwareAccelerated="true">
<meta-data android:name="android.max_aspect" android:value="2.5"/>
<meta-data android:name="android.notch_support" android:value="true"/>
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
<activity
android:name="com.ironsource.sdk.controller.ControllerActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true" />
<activity
android:name="com.ironsource.sdk.controller.InterstitialActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent" />
<activity
android:name="com.ironsource.sdk.controller.OpenUrlActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent" />
<activity
android:name="com.ironsource.mediationsdk.testSuite.TestSuiteActivity"
android:configChanges="orientation|screenSize"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<provider
android:name="com.ironsource.lifecycle.IronsourceLifecycleProvider"
android:authorities="air.com.HFG.A101EscapeGames.IronsourceLifecycleProvider"
android:exported="false" />
</application>
</manifest>
]]></manifestAdditions>
</android>
<extensions>
<extensionID>com.distriqt.IronSource</extensionID>
<extensionID>androidx.core</extensionID>
<extensionID>com.distriqt.Core</extensionID>
<extensionID>com.distriqt.playservices.Base</extensionID>
<extensionID>com.jetbrains.kotlin</extensionID>
<extensionID>com.distriqt.playservices.AdsIdentifier</extensionID>
<extensionID>com.distriqt.playservices.AppSet</extensionID>
</extensions>
</application>
Logcat: |
Please can you update the manifest to be the newer version as I listed above. You do not need to manually enter those ironsource activities any more. |
this one also we tried ad not displayed . In your example above mentioned manifest only present so only we tried |
Can you post the adt.log again now that you have set the android sdk and corrected the manifest? |
Hi I have shared logcat and manifest here can you please check and let me know any mistakes I made. Manifest: <?xml version="1.0" encoding="utf-8" standalone="no" ?>
<!--
Usage:
To localize the description, use the following format for the description element.
<description>
<text xml:lang="en">English App description goes here</text>
<text xml:lang="fr">French App description goes here</text>
<text xml:lang="ja">Japanese App description goes here</text>
</description>
To localize the name, use the following format for the name element.
<name>
<text xml:lang="en">English App name goes here</text>
<text xml:lang="fr">French App name goes here</text>
<text xml:lang="ja">Japanese App name goes here</text>
</name>
-->
<application xmlns="http://ns.adobe.com/air/application/51.1">
<id>com.HFG.A101EscapeGames</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>ironsource</filename>
<description/>
<name>ironsource</name>
<copyright/>
<initialWindow>
<content>ironsource.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>true</fullScreen>
<aspectRatio>landscape</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>true</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions><![CDATA[
<manifest android:installLocation="auto" >
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="34" />
<uses-permission android:name="android.permission.INTERNET"/>
<application >
<meta-data android:name="android.max_aspect" android:value="2.5"/>
<meta-data android:name="android.notch_support" android:value="true"/>
<activity android:name="com.distriqt.core.auth.AuthorisationActivity" android:exported="false" android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
</application>
</manifest>
]]></manifestAdditions>
</android>
<extensions>
<extensionID>com.distriqt.IronSource</extensionID>
<extensionID>androidx.core</extensionID>
<extensionID>com.distriqt.Core</extensionID>
<extensionID>com.distriqt.playservices.Base</extensionID>
<extensionID>com.jetbrains.kotlin</extensionID>
<extensionID>com.distriqt.playservices.AdsIdentifier</extensionID>
<extensionID>com.distriqt.playservices.AppSet</extensionID>
<extensionID>com.distriqt.ironsource.AdQualitySDK</extensionID>
</extensions>
</application> Action Script: import com.distriqt.extension.ironsource.IronSource;
import com.distriqt.extension.ironsource.events.RewardedVideoAdEvent;
import com.distriqt.extension.ironsource.events.InterstitialAdEvent;
//import com.com.distriqt.extension.ironsource.adqualitysdk;
//import com.distriqt.ironsource.AdQualitySDK;
var IRONSRC_APP_KEY : String = "20eac4e0d";
//var IRONSRC_APP_KEY : String = "85460d5d";//test
InitAdIronSource()
function InitAdIronSource()
{
notifyIronsource("IronSource.isSupported"+IronSource.isSupported);
trace("IronSource.isSupported"+IronSource.isSupported);
if (IronSource.isSupported)
{
notifyIronsource("AdMobIronSourceCame-----------------");
IronSource.instance.init( IRONSRC_APP_KEY,
[
IronSource.REWARDED_VIDEO
]
);
notifyIronsource("IronSourceinitCalled-----------------");
IronSource.instance.validateIntegration();
notifyIronsource("IronSourceValidated-----------------");
//Init_Ironsource_Interstitials();
Init_Ironsource_RewardedVideo();
//AdQualitySDK.instance.initialise(IRONSRC_APP_KEY);
}
}
function Init_Ironsource_RewardedVideo(): void
{
try
{
if (IronSource.isSupported)
{
notifyIronsource( "IronSource Version: " + IronSource.service.version );
notifyIronsource( "IronSource Native Version: " + IronSource.instance.nativeVersion );
IronSource.instance.init( IRONSRC_APP_KEY, [ IronSource.REWARDED_VIDEO ] );
IronSource.instance.addEventListener( RewardedVideoAdEvent.OPENED, onRewardedVideoAdOpened );
IronSource.instance.addEventListener( RewardedVideoAdEvent.CLOSED, onRewardedVideoAdClosed );
IronSource.instance.addEventListener( RewardedVideoAdEvent.AVAILABILITY_CHANGED, onRewardedVideoAvailabilityChanged );
IronSource.instance.addEventListener( RewardedVideoAdEvent.STARTED, onRewardedVideoAdStarted );
IronSource.instance.addEventListener( RewardedVideoAdEvent.ENDED, onRewardedVideoAdEnded );
IronSource.instance.addEventListener( RewardedVideoAdEvent.REWARDED, onRewardedVideoAdRewarded );
IronSource.instance.addEventListener( RewardedVideoAdEvent.SHOW_FAILED, onRewardedVideoAdShowFailed );
IronSource.instance.addEventListener( RewardedVideoAdEvent.CLICKED, onRewardedVideoAdClicked );
btn.addEventListener( MouseEvent.CLICK, mouseClickHandler);
}
}
catch (e:Error)
{
notifyIronsource( "ERROR::"+e.message );
}
}
function mouseClickHandler( event:MouseEvent ):void
{
notifyIronsource( "mouseClickHandler::");
notifyIronsource( "isRewardedVideoAvailable-------"+IronSource.instance.isRewardedVideoAvailable() );
if (IronSource.instance.isRewardedVideoAvailable())
{
IronSource.instance.showRewardedVideo();
}
else
{
notifyIronsource( "Rewarded Video not available" );
}
}
//
// EXTENSION HANDLERS
//
function onRewardedVideoAdShowFailed( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdShowFailed" );
notifyIronsource("Error Code: " + errorCode);
var errorCode:String;
var errorDescription:String;
if(event.data)
{
var error:Object = JSON.parse(event.data);
errorDescription = error.error_description;
errorCode = error.error_code;
//tet.text = errorCode+"";
notifyIronsource("errorCode---"+errorCode)
}
else
{
//tet.text = "Rewarded Video not available";
notifyIronsource("onInterstitialAdLoadFailed")
}
}
function onRewardedVideoAdOpened( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdOpened" );
}
function onRewardedVideoAdClosed( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdClosed" );
}
function onRewardedVideoAvailabilityChanged( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAvailabilityChanged: " + event.availability );
}
function onRewardedVideoAdStarted( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdStarted" );
}
function onRewardedVideoAdEnded( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdEnded" );
}
function onRewardedVideoAdRewarded( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdRewarded" );
}
function onRewardedVideoAdClicked( event:RewardedVideoAdEvent ):void
{
notifyIronsource( "onRewardedVideoAdClicked" );
}
function notifyIronsource(msg:String):void
{
tet.appendText(msg);
tet.appendText("\n");
} LOGCAT: |
please find the attached manifest and action script file. |
Can you not filter the log as there are no entries from the extension or ironsource in there ? Also can you send the adt.log file again please (i.e. the AIR build log not the android debug log)? |
Hi After getting approval from ironsource. Now Ad's working fine. |
Now we are trying Ironsource's mediation with AppLovin. Your reference document is being followed by us. "https://docs.airnativeextensions.com/docs/ironsource/mediation/applovin" It is mentioned that additional code or manifest is not necessary. We have included an ANE that is 'com.distriqt.ironsource.AppLovin'. |
Can you post the logs from the device when the crash occurs? https://docs.airnativeextensions.com/docs/tutorials/device-logs |
Hi, |
This looks like you are building the wrong architecture for the device you are testing on? Can you double check that you are building a 64bit build |
Hi,
We have tried to implement IronSource Ad. But while we try to create an APK file, we are facing the following error. We have used all latest ANE. I would appreciate it if you could point out where I made a mistake.
Used ANE :
Action Script Code :
The text was updated successfully, but these errors were encountered: