1

I dont know how it happend.Now in my code it says 'The import com.google.android.gms.ads cannot be resolved'.I have tried all the results in the answers here including this and this

I'm stuck with it. It still exists. google play services is there. Im not sure about my attempts were in right path or not.So helpers pls describe it in step by step.thanks in advance.

import com.google.android.gms.ads.AdSize;

import com.google.android.gms.ads.AdView;

import com.google.android.gms.analytics.GoogleAnalytics;

ERROR: The import com.google.android.gms.ads cannot be resolved

Community
  • 1
  • 1
Anoop K R
  • 11
  • 1
  • 3
  • have you attached google lib. – Aditay Kaushal Jan 06 '16 at 07:08
  • Are you using eclipse or Android studio...? – Sandeep R Jan 06 '16 at 08:11
  • Also please post your code..and where you are getting this error. – Sandeep R Jan 06 '16 at 08:12
  • i'm new in android so please tell me how to check google lib.Also,it was a working project till yesterday.I didnt changed anything.i think it is because of when the power supply suddenly gone,the eclipse closed ubnormally. – Anoop K R Jan 06 '16 at 08:20
  • @sandeep Eclipse.And error is in the import statements itself. – Anoop K R Jan 06 '16 at 08:25
  • Its clear you did not import librarys. Please follow this steps in google developer website . https://developers.google.com/admob/android/eclipse – Sandeep R Jan 06 '16 at 08:31
  • If you still face any error. please ask.happy to help. – Sandeep R Jan 06 '16 at 08:31
  • im half way reached.I choose right click on my project->properties ->android .In that a library in green tick and another in red into mark symbol,which is missing.below the project title there is only a question mark.How can i add google-play-services_lib to that place? – Anoop K R Jan 06 '16 at 14:21

0 Answers0