Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error - The import com.google.android.gms.ads cannot be resolved

I follow instruction from Google developpers but i have a problem. I want display publicity ( with AdMob ) and Google Play Game services on my application.

I display publicity with success and it's work ( I use google play services lib ). But when I want to add the BaseGameUtils library to use Google Play Game Services, I have an error.

My import which work previously doesn't works after the new library import.

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

I don't remove google play services lib so why the error appears ?

Thanks

like image 584
user3365628 Avatar asked Dec 12 '25 15:12

user3365628


1 Answers

Go to your java build path, under project tab add your lib and then under order & export tab tick your lib, apply settings. At last just clean the project and lib, it should work properly...

like image 64
Ankit Bisht Avatar answered Dec 14 '25 04:12

Ankit Bisht