Skip to content
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

Closed
g012 opened this issue Feb 16, 2014 · 7 comments
Closed

Using Ads gets me a "Resources were not found" #19

g012 opened this issue Feb 16, 2014 · 7 comments

Comments

@g012
Copy link

g012 commented Feb 16, 2014

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.

@TheOddler
Copy link

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?

@g012
Copy link
Author

g012 commented Feb 27, 2014

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.
You can't use this plugin AND the AdMob SDK, because the AdMob SDK and google-play-services_lib conflict. AdMob SDK won't be accepted this summer for submissions.

@TheOddler
Copy link

I see, I just tried adding ads myself, using this plugin: https://github.com/nabrozidhs/unity_admob_android
I indeed also got the same error in my logcat. Though ads are working perfectly (though weren't clickable at first, yet quick google fixed that too.) Is it something to be worried about?

@g012
Copy link
Author

g012 commented Feb 27, 2014

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.

@TheClarkster
Copy link

That is strange though. I have the latest version of everything on my
Nexus 4. I get those error in the logcat every time the ad refreshes, but
ads have and continue to be displayed perfectly fine.

On Thu, Feb 27, 2014 at 10:15 AM, g012 notifications@github.com wrote:

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.

Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-36272725
.

@g012
Copy link
Author

g012 commented Feb 27, 2014

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.

@TheClarkster
Copy link

Ok, that seems to make sense to me. Thanks.

On Thu, Feb 27, 2014 at 10:24 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.

Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-36273697
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants