My app uses Avocarrot sdk 3.3.4. When I build an apk without Proguard, everything works fine.
But when Proguard is used, no interstitials show.
I see this error in Logcat:
java.lang.NullPointerException
at android.view.ViewGroup.addView(ViewGroup.java:3353)
at android.view.ViewGroup.addView(ViewGroup.java:3336)
at com.avocarrot.json2view.DynamicView.createViewInternal(DynamicView.java:176)
at com.avocarrot.json2view.DynamicView.createViewInternal(DynamicView.java:174)
at com.avocarrot.json2view.DynamicView.createViewInternal(DynamicView.java:174)
at com.avocarrot.json2view.DynamicView.createView(DynamicView.java:47)
at com.avocarrot.json2view.DynamicView.createView(DynamicView.java:31)
at com.avocarrot.androidsdk.AvocarrotInterstitial.displayAd(AvocarrotInterstitial.java:83)
at com.avocarrot.androidsdk.AvocarrotInterstitial.showAd(AvocarrotInterstitial.java:256)
I put this into my Proguard config file:
-dontwarn com.avocarrot.**
But the problem remains.
Anyone knows a solution?