Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing Google play services library to mobile ads example

Tags:

android

ads

I am trying to run the GoogleAdsSampleActivity class . I have made reference to the Google Play services library but I am getting following error . Please help me to figure out what's wrong. I googled a lot but did not manage to found any solution. Any help would be much appreciated.Thanks!

I got the following error :-

   04-26 01:01:17.174: E/dalvikvm(1482): Could not find class 'android.support.v4.app.FragmentActivity', referenced from method com.google.android.gms.common.GooglePlayServicesUtil.showErrorDialogFragment
like image 550
user3547558 Avatar asked Sep 30 '22 22:09

user3547558


1 Answers

If you are using the latest Google Play Service on your phone, no matter whether you are explicitly using FragmentActivity or support library, you need to put the android-support-v4.jar into the libs folder.

like image 82
Fanglin Avatar answered Oct 05 '22 07:10

Fanglin