Error on Native Ads Advanced (Unified) plugin on Unity (GoogleMobileAds-v3.16.0.1)

853 views
Skip to first unread message

Allan Woellner

unread,
May 3, 2019, 4:14:40 PM5/3/19
to Google Mobile Ads SDK Developers
Hi,


I'm trying to implement native advanced ads in Unity 2019.1.1f1 but after install the GoogleMobileAds-v3.16.0.1 plugin and use the Play Services Resolver I got this error on build:

2019/05/03 20:59:11.749 18180 18216 Error Unity: AndroidJavaException: java.lang.ClassNotFoundException: com.google.android.gms.ads.initialization.OnInitializationCompleteListener
2019/05/03 20:59:11.749 18180 18216 Error Unity: java.lang.ClassNotFoundException: com.google.android.gms.ads.initialization.OnInitializationCompleteListener
2019/05/03 20:59:11.749 18180 18216 Error Unity: at java.lang.Class.classForName(Native Method)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at java.lang.Class.forName(Class.java:400)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at java.lang.Class.forName(Class.java:326)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at com.unity3d.player.UnityPlayer.c(Unknown Source)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at com.unity3d.player.UnityPlayer$e$1.handleMessage(Unknown Source)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at android.os.Handler.dispatchMessage(Handler.java:98)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at android.os.Looper.loop(Looper.java:154)
2019/05/03 20:59:11.749 18180 18216 Error Unity: at com.unity3d.player.UnityPlayer$e.run(Unknown Source)
2019/05/03 20:59:11.749 18180 18216 Error Unity: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.initialization.OnInitializationCompleteListener" on path: DexPathList[[zip file "/data/app/.../base.apk"],nativeLibraryDirectories=[/data/app/.../lib/arm, /

I must be missing something...


mobileadssdk...@google.com

unread,
May 6, 2019, 3:31:48 AM5/6/19
to Allan Woellner, Google Mobile Ads SDK Developers
Hi Allan,

Thank you for reaching out to us, and for giving us detailed information on your concern.

We tested your provided Unity test project, and can confirm that we succeeded in running the Play Services resolver, as well as in building an actual apk from it (please see attached screenshots).
We also tried to remove and re-import the Mobile Ads SDK plugin (as found in this download link), where we once again succeeded in resolving and building an apk from your project.

Could you kindly check on the suggestions below, and see if they would fix the issue?
  • Try removing and re-importing the Mobile Ads SDK plugin .unitypackage.
  • Import all the items from the above .unitypackage (i.e. don't uncheck anything from the import list).
  • Switch the build platform to Android in the Build Settings.
  • Run the Play Services resolver once more. You can also run the forced resolver as well for good measure.
  • Use the latest Android SDK for building.
Feel free to get back to us again if the problem persists, or if you have any other questions or concerns. We are here to help.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-admob-ads-sdk/6ef53b37-c598-4cf9-a2ed-6e7d775cd162%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Screenshot from 2019-05-06 14-32-48.png
Screenshot from 2019-05-06 14-34-24.png

Allan Woellner

unread,
May 6, 2019, 1:24:17 PM5/6/19
to Google Mobile Ads SDK Developers
Hi Ziv,

I can run the resolver and build the apk, the error I posted its from adb logcat while the app is running, can you check again please?

Regards,
Allan

mobileadssdk...@google.com

unread,
May 7, 2019, 3:28:22 AM5/7/19
to Allan Woellner, Google Mobile Ads SDK Developers
Hi Allan,

We tried to run the app built from your project using the Mobile Ads SDK plugin in question, and can confirm that we were getting the same error log.
Due to this, we've now forwarded this issue to the engineering team. We'll get back to you the soonest possible time once there are any updates on this issue.


Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsubscrib...@googlegroups.com.

--

---
You received this message because you are subscribed to the Google Groups "Google Mobile Ads SDK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.
To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

mobileadssdk...@google.com

unread,
May 7, 2019, 11:45:30 PM5/7/19
to Allan Woellner, Google Mobile Ads SDK Developers
Hi Allan,

The engineering team got back to us with a new version of the plugin. 
Could you try importing this version in your project and see if it works?
We recommend deleting all other traces of the SDK first before importing.


Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

Allan Woellner

unread,
May 8, 2019, 7:13:06 AM5/8/19
to google-adm...@googlegroups.com
I can load the ads now but have another error when I click the ad, here is the logcat output:

2019/05/08 12:08:03.824 26806 26806 Warn System: ClassLoader referenced unknown path: /system/framework/QPerformance.jar
2019/05/08 12:08:03.827 26806 26806 Error BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib, /vendor/lib]]
2019/05/08 12:08:03.827 26806 26806 Verbose BoostFramework: BoostFramework() : mPerf = null

And here is the updated project:

Regards,
Allan.


mobileadssdk...@google.com

unread,
May 9, 2019, 1:14:34 AM5/9/19
to Allan Woellner, Google Mobile Ads SDK Developers
Hi Allan,

Thank you for providing detailed information on your concern.

The error log you've provided references a framework provided by your device's firmware. It is best to refer to their support sites for further assistance on this,
since we can only assist you with your implementation of the Mobile Ads SDK on this specific forum.

As for your question about a sample project for native ads, you may use the Roll-A-Ball sample project to get started with.

Feel free to reach out to us for further inquiries and concerns about the Mobile Ads SDK.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team


On Wednesday, May 8, 2019 at 4:45:30 AM UTC+1, mobileadssdk-forumadvisor wrote:
Hi Allan,

The engineering team got back to us with a new version of the plugin. 
Could you try importing this version in your project and see if it works?
We recommend deleting all other traces of the SDK first before importing.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team
On 05/07/19 15:28:10 mobileadssdk...@google.com wrote:
Hi Allan,

We tried to run the app built from your project using the Mobile Ads SDK plugin in question, and can confirm that we were getting the same error log.
Due to this, we've now forwarded this issue to the engineering team. We'll get back to you the soonest possible time once there are any updates on this issue.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

On 05/07/19 01:24:15 allan wrote:
Hi Ziv,

I can run the resolver and build the apk, the error I posted its from adb logcat while the app is running, can you check again please?

Regards,
Allan


On Monday, May 6, 2019 at 8:31:48 AM UTC+1, mobileadssdk-forumadvisor wrote:
Hi Allan,

Thank you for reaching out to us, and for giving us detailed information on your concern.

We tested your provided Unity test project, and can confirm that we succeeded in running the Play Services resolver, as well as in building an actual apk from it (please see attached screenshots).
We also tried to remove and re-import the Mobile Ads SDK plugin (as found in this download link), where we once again succeeded in resolving and building an apk from your project.

Could you kindly check on the suggestions below, and see if they would fix the issue?
  • Try removing and re-importing the Mobile Ads SDK plugin .unitypackage.
  • Import all the items from the above .unitypackage (i.e. don't uncheck anything from the import list).
  • Switch the build platform to Android in the Build Settings.
  • Run the Play Services resolver once more. You can also run the forced resolver as well for good measure.
  • Use the latest Android SDK for building.
Feel free to get back to us again if the problem persists, or if you have any other questions or concerns. We are here to help.

Regards,
Ziv Yves Sanchez
Mobile Ads SDK Team

On 05/04/19 04:14:39 wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to google-admob-ads-sdk+unsub...@googlegroups.com.

To post to this group, send email to google-admob-ads-sdk@googlegroups.com.

Allan Woellner

unread,
May 10, 2019, 10:15:30 AM5/10/19
to Google Mobile Ads SDK Developers
You're right, the error seems to be not related with Mobile Ads SDK, but I think I've got the native ads advanced working now!

Thank you guys!

Regards,
Allan.
Reply all
Reply to author
Forward
0 new messages