-
Notifications
You must be signed in to change notification settings - Fork 947
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Ads gets me a "Resources were not found" #19
Comments
I was under the impression this plugin didn't support ads. May I ask how you enable them? I assume you're using another plugin for this, correct? If so, which one, or did you implement them yourself? |
Well the library it downloads and puts in the Plugins/Android directory is google-play-services_lib, which is the now official library for displaying ads. So I have an Activity in Java extending UnityPlayerActivity, and creating the AdView. |
I see, I just tried adding ads myself, using this plugin: https://github.com/nabrozidhs/unity_admob_android |
Somehow, it depends on your target. From what I've gathered, the resources are used to display notifications to users with outdated or inexistant installation of Google Play Services. If the resources can't be found in this situation, the ad will simply not display. |
That is strange though. I have the latest version of everything on my On Thu, Feb 27, 2014 at 10:15 AM, g012 notifications@github.com wrote:
|
Yes, because the resources seem to not be needed when everything is up to date on the phone. The message in that case must just be a check I suppose. The resources not found message is referring to the library resources, which are included in it, not to some resources on the phone. I do have a Javascript error on the Nexus 5 though: it can't find a style for display an horizontal smart banner in landscape, so it displays it not styled (in my case bottom left whereas I asked for bottom without precision - on other devices it fills up the width). But I'm not sure it's related to the resources not being found issue, maybe they just don't have a style for this size. |
Ok, that seems to make sense to me. Thanks. On Thu, Feb 27, 2014 at 10:24 AM, g012 notifications@github.com wrote:
|
Hey,
If I use this plugin and display ads, they display correctly and work, but I get the error message in logcat each time the ad is refreshed:
"E/GooglePlayServicesUtil( 6204): The Google Play services resources were not found. Check your project configuration to ensure that the resources are included."
3 times in a row, at each ad refresh.
I've tried exporting the project and build with Eclipse as well, it's the same issue. I don't understand, as the Google Play Services resources are indeed in the apk generated by Unity or Eclipse. I used apktool to look at the resources and they're here. I've checked the Eclipse generated R.java files, they all list the proper resources.
Is the issue with the google play services lib itself, like some resources are missing from it only for Ads ?
Thank you for your help.
The text was updated successfully, but these errors were encountered: