0

I am trying to run the default Google MAps application from Android Studio, I already have the API key. The problem is I am getting this error:

GoogleService failed to initialize, status: 10, Missing an expected resource: 'R.string.google_app_id' for initializing Google services.  Possible causes are missing google-services.json or com.google.gms.google-services gradle plugin.

01-27 18:58:26.980 16757-16757/elbauldelprogramador.com.gpsqr E/GMPM: Scheduler not set. Not logging error/warn.

01-27 18:58:26.990 16757-16788/elbauldelprogramador.com.gpsqr E/GMPM: Uploading is not possible. App measurement disabled

I've checked this answer: GoogleService failed to initialize and have placed the json in app/, But still does not work.

The thing is The app runs correctly in an Sony Xperia Z1 and a Galaxy S II. But in my Huawei Honor 4x is not working.

Does somebody have any clue of what may be happening?

Community
  • 1
  • 1
Alejandro Alcalde
  • 5,990
  • 6
  • 39
  • 79
  • 1
    Do the phones have the latest Google Play services installed? – Shmuel Jan 27 '16 at 18:06
  • Yes, it is installed – Alejandro Alcalde Jan 27 '16 at 18:11
  • Is the Huawei Honor 4x using the default ROM (based on [phonearena](http://www.phonearena.com/phones/honor-4X_id9356), its using EMUI)? Some ROMs don't have the necessary google apps and you'll need to install them manually. Did you install the Google Apps manually on the Huawei phone as well? I'm not sure if I'm just repeating the question of @Shmuel as well. – adjuremods Jan 30 '16 at 15:47
  • @adjuremods It has emui and google Services and Maps installed (maps intalled manually via Google Play). The thing is it worked for a while (One execution only) and stopped working again. – Alejandro Alcalde Jan 30 '16 at 17:26
  • Any help? still now working – Alejandro Alcalde Feb 12 '16 at 13:46

1 Answers1

0

Problem solved, what was happening is the SD card was being unmounted when the device was connected over USB. If I launch the app without the usb plugged it works perfectly.

Alejandro Alcalde
  • 5,990
  • 6
  • 39
  • 79