question

piquantdavor avatar image
piquantdavor asked

Mobile Ads API 5.1.10 - method AdDomain.getCountryCode is missing?

Hi, I have downloaded Apps-SDK.zip with Mobile Ads API 5.1.10. When I start SimpleAdSample without any modifications I get following errors in LogCat: I/dalvikvm(13201): Could not find method com.amazon.device.ads.AmazonOOAdRegistration$AdDomain.getCountryCode, referenced from method com.amazon.device.ads.Configuration.setAdDomain W/dalvikvm(13201): VFY: unable to resolve virtual method 562: Lcom/amazon/device/ads/AmazonOOAdRegistration$AdDomain;.getCountryCode ()Ljava/lang/String; D/dalvikvm(13201): VFY: replacing opcode 0x6e at 0x0000
D/dalvikvm(13201): VFY: dead code 0x0003-000e in Lcom/amazon/device/ads/Configuration;.setAdDomain (Lcom/amazon/device/ads/AmazonOOAdRegistration$AdDomain;)V I have extracted amazon-ads-5.1.10.jar and it does not contain AdDomain class. Configuration.class is only place that has reference to AdDomain. Can someone from Amazon team take a look into this? Thx, Davor
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

piquantdavor avatar image
piquantdavor answered
I hope this time it will be more readable. :) Hi, I have downloaded Apps-SDK.zip with Mobile Ads API 5.1.10. When I start SimpleAdSample without any modifications I get following errors in LogCat: -------------- I/dalvikvm(13201): Could not find method com.amazon.device.ads.AmazonOOAdRegistration$AdDomain.getCountryCode, referenced from method com.amazon.device.ads.Configuration.setAdDomain W/dalvikvm(13201): VFY: unable to resolve virtual method 562: Lcom/amazon/device/ads/AmazonOOAdRegistration$AdDomain;.getCountryCode ()Ljava/lang/String; D/dalvikvm(13201): VFY: replacing opcode 0x6e at 0x0000 D/dalvikvm(13201): VFY: dead code 0x0003-000e in Lcom/amazon/device/ads/Configuration;.setAdDomain (Lcom/amazon/device/ads/AmazonOOAdRegistration$AdDomain;)V -------------- I have extracted amazon-ads-5.1.10.jar and it does not contain AdDomain class. Configuration.class is only place that has reference to AdDomain. Can someone from Amazon team take a look into this? Thx, Davor
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Pedro avatar image
Pedro answered
I am having the same issue since I started testing Amazon Ads yesterday. I have not managed to fix, but I'm not sure how it affects the rest, since everything seems to be working.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

edbmg avatar image
edbmg answered
Are you running it on the emulator?? If so I got this same error code and it forced close on the emulator which would be valid cause the emulator wouldn't provide a county code for the ad api to pull but when I ran my app on my device everything worked fine and the ad showed up.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Pedro avatar image
Pedro answered
Me, I'm testing on a device.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

piquantdavor avatar image
piquantdavor answered
I am running it on device...
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
You can safely ignore this message. This file is used by internal Amazon apps developed by Amazon to serve ads. The absence of this file will only cause the logcat message to appear. While we are working on an updated SDK that removes this dependency and subsequent error message, there is no requirement to wait for the update.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Giuseppe avatar image
Giuseppe answered
How this can be ignored? ... Using proguard with your sdk will cause that message and ads is not showing...
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Giuseppe, The issue has been fixed in the latest version of the Mobile Ads SDK (amazon-ads-5.1.14.jar). Please use the latest sdk and get back to us if you have any issue with it. Thanks.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.