Vungle ads do not initialise since build 2014.2429 - Error shows up in app

Hi All,

The Vungle plugin should be fixed now! Turns out, it was actually the support lib that was missing, but it’s back in there. You don’t need to include FB, just use our regular docs, here: http://docs.coronalabs.com/daily/plugin/vungle/

Jordyn / Corona

Hi All,

The Vungle plugin should be fixed now! Turns out, it was actually the support lib that was missing, but it’s back in there. You don’t need to include FB, just use our regular docs, here: http://docs.coronalabs.com/daily/plugin/vungle/

Jordyn / Vungle

Awesome, thanks Jordyn for the quick fix & update.

I’ve just done a fresh build to test with and the log is still riddled with vungle errors:

E/GooglePlayServicesUtil(28172): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

E/Parcel  (  861): Class not found when unmarshalling: com.vungle.publisher.c

E/Parcel  (  861): java.lang.ClassNotFoundException: com.vungle.publisher.c

E/Parcel  (  861):     at java.lang.Class.classForName(Native Method)

E/Parcel  (  861):     at java.lang.Class.forName(Class.java:251)

E/Parcel  (  861):     at java.lang.Class.forName(Class.java:216)

E/Parcel  (  861):     at android.os.Parcel.readParcelableCreator(Parcel.java:2133)

E/Parcel  (  861):     at android.os.Parcel.readParcelable(Parcel.java:2097)

E/Parcel  (  861):     at android.os.Parcel.readValue(Parcel.java:2013)

E/Parcel  (  861):     at android.os.Parcel.readArrayMapInternal(Parcel.java:2314)

E/Parcel  (  861):     at android.os.Bundle.unparcel(Bundle.java:249)

E/Parcel  (  861):     at android.os.Bundle.getString(Bundle.java:1118)

E/Parcel  (  861):     at android.content.Intent.getStringExtra(Intent.java:5128)

E/Parcel  (  861):     at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:1453)

E/Parcel  (  861):     at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:1052)

E/Parcel  (  861):     at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:4183)

E/Parcel  (  861):     at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:4063)

E/Parcel  (  861):     at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:159)

E/Parcel  (  861):     at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2650)

E/Parcel  (  861):     at android.os.Binder.execTransact(Binder.java:404)

E/Parcel  (  861):     at dalvik.system.NativeStart.run(Native Method)

E/Parcel  (  861): Caused by: java.lang.NoClassDefFoundError: com/vungle/publisher/c

E/Parcel  (  861):     … 18 more

E/Parcel  (  861): Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.vungle.publisher.c” on path: DexPathList[[directory “.”],nativeLibraryDirectories=[/vendor/lib, /system/lib]]

I haven’t had it crash yet though but the issue was intermittent… I can only assume all the above errors are not good though?

This is what my settings file looks like for the record:

settings = {
    orientation =
    {
        default = “landscapeRight”,
    },
    
    plugins =
    {
        [“CoronaProvider.ads.vungle”] =
        {
            publisherId = “com.vungle”,
        },
        
        
        
        [“plugin.google.play.services”] =
        {
            publisherId = “com.coronalabs”,
           – supportedPlatforms = { android=true },
        },
    },      
    
    android = {
    
        usesPermissions = {
            “android.permission.INTERNET”,
            “android.permission.WRITE_EXTERNAL_STORAGE”,
            “android.permission.ACCESS_NETWORK_STATE”,
        },
    },
}

Hmm, I’m not sure why you’re seeing that error… are you able to run my sample app, here: https://github.com/Vungle/vungle-resources/tree/master/Corona-resources/coronaSampleApp? I just did, and it works fine for me.

Are you using Proguard, or maybe an older version of Corona?

Jordyn / Vungle

Hi Jordyn,

                I’ve just built your sample app and done some testing and the exact same error messages there.

I don’t use Proguard.

I’m using the latest public Corona build - 2393.

Is someone able to build the test app on a higher build and write the adb logcat to a txt file, then search the file for vungle to see if the same errors appear?

I’ve not been able to crash the game with my limited testing but my stats don’t look right… like I have lots of downloads and active sessions but not many ad views so I’m a bit concerned the game is still crashing. If it is then there is a chance its because of all these errors?

So we need a new public build to use the Vungle plugin now :o , my project used to work but now it doesn’t with the same code. I also get “The Google Play services resources were not found”  :unsure:

@Krivvenz- I just tested with that public build- 2393 and it works fine. I’m also getting that error message, but no crashes, so you can ignore the message. If you aren’t seeing many views, you should email your Vungle account manager. They can give you ideas on placements and video options. If you don’t know who yours is, email monetize@vungle.com

@Cmontesino- same thing- don’t worry about the error message. What do you mean, your code doesn’t work? Are you seeing videos? Crashes? 

Jordyn / Vungle

@jordyn.chuhaloff, you’re right it works on the public build 2393! Yay :slight_smile:  my error was choosing “None” as “Target App Store” when building with Corona SDK. 

Now I still have a problem, I’m trying incentivized videos and I’m getting two adView (and two adEnd) events after watching a video:

From the terminal:

I/Corona  ( 8877): onSystemEVENT.type:applicationResume

I/Corona  ( 8877): event.type: adEnd

I/Corona  ( 8877): event.type: adView

I/Corona  ( 8877): event.type: adView

I/Corona  ( 8877): event.type: adEnd

 

causing me to reward twice for a single video view. This didn’t happen before with the same code.

@cmontesino:

For the duplicate callback issue, we have a fix in version 3.2.2. The native version is live, and we will be pushing it to Corona this week. There’s already another forum post for this, here: http://forums.coronalabs.com/topic/51378-calling-composergotoscene-in-vungle-callback-throws-error/#entry266474. Please check there, I will update it when we push :slight_smile:

Jordyn /Vungle

Corona don’t maintain the Vungle plugin, Vungle do. Your best course of action would be to report this issue to Vungle directly

I do not think that it is that simple - from previous posts I learned that a certain class is included by Corona in Pro-builds for Vungle to work. Enterprise user have to include this class themselves. If it is missing, Vungle ads won’t work either. Maybe the relevant class has not been included in the recent daily builds for the Pro-users or something else is wrong.

Hi @heftyApps,

I’m Sofie, the Community Manager here at Vungle. Can you please email us at tech-support@vungle.com and we’ll be happy to help figure out the issue. Please feel free to email me directly in the future at sofie.singer@vungle.com.

Thank you for your patience!

Cheers,

Sofie

+1 I have the same error. I am currently using build 2439, the most up-to-date build.

I tried build 2428, but I am not seeing Vungle ads…

I do see this error though:

 

E/GooglePlayServicesUtil( 3019): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

 

My build.settings has this, as recommended:

 

        [“CoronaProvider.ads.vungle”] =

        {

            publisherId = “com.vungle”,

        },

        [“plugin.google.play.services”] =

        {

            publisherId = “com.coronalabs”,

        },                

I’m getting the error with build 2014.2438, which fits what everyone else is saying.

I don’t suppose anyone has a guess for why Vungle is failing for me with build 2428?

It’s not that I have never used Vungle – I have it running on an Android game from last year.

EDIT: I am going to try adding a Google Play Games Id to the game…

http://docs.coronalabs.com/daily/plugin/gameNetwork-google/

Hi everyone, 

Corona’s made some changes to Google Ad ID that we will need to incorporate in our plugin. In the meantime, they recommend you include the Facebook plugin, which should cover the missing Google Ad ID. If you have any questions, let me know!

Jordyn / Vungle

I built APK for Google Play using daily build 2419, and Vungle appears to work as expected.  Does this mean there should be no issue with Vungle plugin when built with earlier daily build?  Did the issue start with daily build 2428?

Naomi