Export to GitHub

google-plus-platform - issue #755

The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.


Posted on Jan 29, 2014 by Happy Ox

I have been using eclipse as development tool for android. I downloaded the last google play services (I have google play services ver 14 in my Android SDK manager under extras and when I check no any new release when I check. I have compiled the app GoogleAdsSampleActivity (it is the example in extras) via 4.2.2 API 19 rev 2 without problem )and I uploaded it in my mobile Google Galaxy Nexus ver 4.1.1 without problem.

I can run the app in my phone without problem menus are seen but I cannot see any advertisement. When I check logcat I see that

===================================== by Log tag: GooglePlayServicesUtil

by Log message :The Google Play services resources were not found. Check your project configuration to ensure that the resources are included.

by Application name: com.google.android.gms.samples.ads

Is it known bug?

Thanks

D

Comment #1

Posted on Jun 4, 2014 by Helpful Bear

According to Google, we can ignore this. Kindly refer to this FAQ : https://developers.google.com/mobile-ads-sdk/kb/#resourcesnotfound

Comment #2

Posted on Jun 19, 2014 by Quick Elephant

@1 even though I might be able to ignore it, each time I choose to debug the app, I get into a weird location in code (that isn't included) .

here's the stack: Thread [<1> main] (Suspended (exception ClassNotFoundException))

PathClassLoader(BaseDexClassLoader).findClass(String) line: 60
PathClassLoader(ClassLoader).loadClass(String, boolean) line: 497
PathClassLoader(ClassLoader).loadClass(String) line: 457
grt.a(IBinder) line: 43 bpg.a(Object) line: 560 bpg(bpa).d() line: 192
boz.handleMessage(Message) line: 128
boz(Handler).dispatchMessage(Message) line: 102 Looper.loop() line: 136 ActivityThread.main(String[]) line: 5137
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object...) line: 515
ZygoteInit$MethodAndArgsCaller.run() line: 795 ZygoteInit.main(String[]) line: 611 XposedBridge.main(String[]) line: 132
NativeStart.main(String[]) line: not available [native method]

This is very annoying, and you can only skip it by pressing F8 multiple times.

Comment #3

Posted on Jul 23, 2014 by Swift Elephant

@2. Second that. Same exception and it definitely has to do wit setMyLocationEnabled(true)

Comment #4

Posted on Sep 29, 2014 by Happy Giraffe

Comment deleted

Comment #5

Posted on Sep 29, 2014 by Happy Giraffe

same issue here.... and not using setMyLocationEnabled

Comment #6

Posted on Nov 29, 2014 by Helpful Bird

@lblb That link sums it up, I think.

Sounds like the elusive pot of gold...I can't get it to work either, but if they're downloading a free app, why would anyone look to advertise there?, I suppose.

Humans are behind this...Marketers, promoters...etc. I just wanted to put a picture on my loadscreen for advertisement! Simple! (monoboom starplayer)

package com.starplayer;

import android.app.Activity; import android.os.Bundle;

public class SPGame extends Activity {

public static SPGameView gameView;
public static SPGameRenderer renderer;

@Override
public void onCreate(Bundle savedInstanceState) {

    super.onCreate(savedInstanceState);
    gameView = new SPGameView(this);        
    renderer = new SPGameRenderer();
    gameView.setBackgroundResource(R.drawable.load0);
    gameView.setZOrderOnTop(true);
    gameView.setRenderer(renderer);
    setContentView(gameView);
}

from SPMainMenu:

start.setOnClickListener(new OnClickListener(){
    @Override
public void onClick(View v){
    new Handler().post(new Thread(){
    @Override
    public void run(){                  
    Intent game = new Intent(SPMainMenu.this,SPGame.class);
    SPMainMenu.this.startActivity(game);
        overridePendingTransition(R.layout.fadein,R.layout.fadeout);
    }   //,SPEngine.GAME_LOAD_DELAY
                               );}}
                         );

use PostDelayed and change the length of the ad if necessary

instead I've got it to run just fine but without an ad loading with all this:

public void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    Ad = new InterstitialAd(this);
    Ad.setAdUnitId("ca-app-pub-3252436141717227/4635104392");

    //AdView adView = (AdView) this.findViewById(R.id.adView);  //only for Banner ads
AdRequest adRequest = new AdRequest.Builder()
    .addTestDevice(AdRequest.DEVICE_ID_EMULATOR)
    //.addTestDevice("CC5F2C72DF2B356BBF0DA198") //Random Text
    .build();

    //adView.loadAd(adRequest);  //only for Banner ads
    Ad.loadAd(adRequest);

    Ad.setAdListener(new AdListener(){
        @Override
        public void onAdClosed(){
    //throw party, although party should start onAdOpened?

        }           
    });

which apparently does nothing ...at least the screen doesn't go blank anymore

Attachments

Comment #7

Posted on Nov 29, 2014 by Helpful Bird

sorry @post #1 amit.sah

Attachments

Comment #8

Posted on Dec 4, 2014 by Helpful Bird

Starplayer...date...12.4.2014... Ads are showing... Solution not clear.. DDMS was use upon ad showing.. mobile device connected.. //yet not acting useful in dubug fixed debug issues from logcat post Google_Play_Services not found issue.. couldn't run Google_Play_Services yet automatically compiles with Is Library checked.. removed all references except for google-play-services_lib in Project Properties.. drank beer.. ad appeared and was dismissed.. reloaded app... ad reappeared on resuming main menu.. stared at screen...in disbelief. Not sure if it was DDMS with device attached or what (lag time w/Google, etc.), but need to back up.. ... P.S. feeling blessed... will attach pic for sacrifice..lol

Attachments

Comment #9

Posted on Dec 4, 2014 by Helpful Bird

Ad dismissed meant I was sure not to click on it per rules...used onBackPressed...[etc.]

Comment #10

Posted on Dec 4, 2014 by Helpful Bird

in the manifest, this may have done it:

<activity android:name="SPMainMenu" android:screenOrientation="portrait"/>
<service android:name="SPMusic"/>
<activity android:name="SPGame" android:screenOrientation="portrait"/>
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>
<activity android:name="com.google.android.gms.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
    android:theme="@android:style/Theme.Translucent"
    />

Comment #11

Posted on Nov 5, 2015 by Happy Ox

Comment deleted

Status: New

Labels:
Type-Defect Component-REST-API