Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google play services not available due to error 2

I have two activities in my app and i am showing google AdMob banner ad in these activities. First activity runs fine and it shows banner ad as well but whenever i start second activity it generate the force close error saying these lines randomly
"No resource found error"
"google play services not available due to error 2"
Required this "..." found this "..."
I have double checked the code, it is same in both of the activities but can't solve the problem.
Any Help will be appreciated.

like image 917
M.Mohsin Avatar asked Jun 10 '14 08:06

M.Mohsin


People also ask

How do I enable Google Play Services after disabling it?

On your mobile device, open Settings . Tap on Apps, click on the drop down to select 'Disabled'. Select Google Play Store > touch enable. If you see disable, the Google Play Store app is already enabled.

Why is Google Play Service not supported by my device?

The “Your device isn't compatible with this version” notification can occur for a few reasons: The app requires a more recent version of Android. Try updating to the latest Android version. Your device may be too old as the app uses features only found on newer hardware.


1 Answers

I encountered the same issue today and all I had to do is:

  1. Update Google Play Services on the device
  2. Open the Play Store at least once.
  3. Then I ran my app again and it worked.
like image 51
Abdallah Alaraby Avatar answered Oct 20 '22 16:10

Abdallah Alaraby