Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync Project error - Execution failed for task ‘:marvel-app:processMockDebugGoogleServices’. #2

Closed
jorgecasariego opened this issue Mar 3, 2017 · 4 comments

Comments

@jorgecasariego
Copy link

jorgecasariego commented Mar 3, 2017

When I tried to sync my project after configure all my grades files I have this error:

Error:Execution failed for task ‘:marvel-app:processMockDebugGoogleServices’.

No matching client found for package name ‘test.marvel.debug’

I don’t know if I need to configure something on developers.google.com

I’m seeing that your google-service.json has this part that I don’t have

"client_info": {
  "mobilesdk_app_id": "1:917870933295:android:f40c157f10d0958b",
  "android_client_info": {
    "package_name": "com.mirhoseini.marvel.debug"
  }
}

Edit

To hide the error I added your id's. This part of the code I added to my project :(

{
      "client_info": {
        "mobilesdk_app_id": "1:917870933295:android:f40c157f10d0958b",
        "android_client_info": {
          "package_name": "com.mirhoseini.marvel.debug"
        }
      },
      "oauth_client": [
        {
          "client_id": "917870933295-657emgd5pnl2j8lpkfk87unefkub69ol.apps.googleusercontent.com",
          "client_type": 3
        }
      ],
      "api_key": [
        {
          "current_key": "AIzaSyBdbZt2_S2y2-jYVn7xfeyAwMAN7ePfTD0"
        }
      ],
      "services": {
        "analytics_service": {
          "status": 1
        },
        "appinvite_service": {
          "status": 1,
          "other_platform_oauth_client": []
        },
        "ads_service": {
          "status": 2
        }
      }
    }
@mohsenoid
Copy link
Owner

mohsenoid commented Mar 8, 2017 via email

@jorgecasariego
Copy link
Author

Hi @mmirhoseini,

I already create an account in Firebase and generated the file google-service.json, after that, I downloaded the file, I replaced yours with mine but does not generate the part where it has the "package.name.debug". The first part was generated without problem.

I don't know if I have to configure something else in Firebase to generate the debug part. Thanks, you did an awesome project

@mohsenoid
Copy link
Owner

mohsenoid commented Mar 8, 2017 via email

@jorgecasariego
Copy link
Author

Yes! You had direct me to the right way.

I have found a great article on Firebase about my problem. For anybody who has the same question can read here about this: Organizing your Firebase-enabled Android app builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants