Get Started with Avocarrot

Overview

Examples

Android

Overview

- Avocarrot Exchange SDK

Setup Exchange SDK

Stream

Native Assets

Exchange Troubleshooting

- Avocarrot Mediation SDK

Setup Mediation

Stream Ads Mediation

Native ads Mediation

Native Assets Mediation

Banner Mediation

Interstitial Mediation

Video Mediation

Supported Networks & Ad Types

Mediation Troubleshooting

iOS

Overview

- Avocarrot Exchange SDK

Setup SDK

Stream

Native Assets

Exchange Troubleshooting

- Avocarrot Mediation

Getting Started With Mediation

Stream Ads Mediation

Native Ads Mediation

Banner Ads Mediation

Interstitial Ads Mediation

Video Ads Mediation

Supported Networks & Ad Types

Mediation Troubleshooting

API Documentation

Reporting API

Help

FAQ

Updates

SDK Change Log

Android Change Log

iOS Change Log

Exchange Troubleshooting

Updated 2 months ago ​by Chris

Overview

To debug your Avocarrot integration enable the Avocarrot Logger in your project.

You can enable the Avocarrot Logger to debug your Avocarrot integration.
You can track four different levels of logs:  DEBUG, INFO, WARN, ERROR

// Log any events related with Avocarrot
configurationBuilder.setLogLevel(Level.DEBUG)

You can see the SDK version changes in the Android Exchange SDK Changelog page.

Proguard warnings

Warning: com.avocarrot.sdk.*** : Can't find referenced class com.avocarrot.sdk.*** <br>Warning: com.avocarrot.sdk.*** : There were *** unresolved references to classes or interfaces

Add the following in your configuration file (eg. proguard-rules.pro)

  -dontwarn com.avocarrot.**
  -keep class com.avocarrot.** { *; }
  -keepclassmembers class com.avocarrot.** { *; }
  -keep public class * extends android.view.View {
      public <init>(android.content.Context);
      public <init>(android.content.Context, android.util.AttributeSet);
      public <init>(android.content.Context, android.util.AttributeSet, int);
      public void set*(...);
  }

Avocarrot Issues

E/Avocarrot: [ERROR]: Could not load Ad : java.lang.SecurityException: ConnectivityService: Neither user *** nor current process has android.permission.ACCESS_NETWORK_STATE.
Add the following code in your AndroidManifest.xml 

  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

E/AndroidRuntime: FATAL EXCEPTION: main java.lang.VerifyError: com/avocarrot/sdk/DeviceInfo$AdvertisingIdTask
This error indicates that you haven't setup the Google Play Services SDK. To install the SDK click here.


E/Avocarrot: [ERROR]: Could not load Ad : java.net.UnknownHostException: Unable to resolve host "ads.avocarrot.com": No address associated with hostname
Make sure that your device is connected to the Internet.


E/Avocarrot: [ERROR]: Failed to initialize Avocarrot SDK - Problem with Google play Services: com.google.android.gms.common.GooglePlayServicesNotAvailableException :
This error indicates that you haven't setup the Google Play Services SDK. To install the SDK click here.


E/Avocarrot: [ERROR]: BaseController : java.lang.Exception: Response not valid|filled : Missing uuid from the user object in the request body.
This error indicates that you haven't setup the Google Play Services SDK. To install the SDK click here.


E/Avocarrot: [ERROR]: Could not load Ad for placement: java.lang.SecurityException: ConnectivityService: Neither user xxxxx nor current process has android.permission.ACCESS_NETWORK_STATE
You must include the ACCESS_NETWORK_STATE permission in your manifest file. 

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

E/Avocarrot: [ERROR]: Could not load Ad for placement: java.lang.SecurityException: Permission denied (missing INTERNET permission?)
You must include the INTERNET permission in your manifest file. 

<uses-permission android:name="android.permission.INTERNET" />

Avocarrot Stream Issues

W/Avocarrot: [WARN]: Failed to set frequency: value was negative. The default value 5 was used instead
Define a positive integer for your frequency value (use 0 to show only one ad).


W/Avocarrot: [WARN]: Failed to set starting position: value was negative. The default value 1 was used instead
Define a positive integer for your starting position (zero-index).


E/Avocarrot: [ERROR]: java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread. Make sure your adapter calls notifyDataSetChanged() when its content changes.
Change the layout_height="wrap_content" property to "match_parent"


Was this article useful?