I am trying to upgrade my google play services dependencies to 8.4.0 by following the example Google gives here, but I am getting the following error (\'com.example.examplea
check that, in your "google-services.json" file your package_name is available or not
Happened to me when switching flavors.
Now you can also use the google-services.json with different flavors.
See https://stackoverflow.com/a/34364376/570168
If this happened to you after renaming your application package name, then you need to update the following:
1)google-services.json file in your application by looking up in the file for "package_name" attribute and update it with the new package name.
2)Update your application client Credentials in Google Developers Console by going to the Credentials
and selecting your android client key then update the package name as well with the new one.
Hope this will help.
i had the same problem and just easy solve it make sure the package name for package in mainfest tag inside manifest.xml file and the applicationId in application tag inside gradle app level file has the same package name
in manifest.xml
package="com.example.work"
in gradle app level
applicationId "com.example.work"
hope it help
This happened to me when my package name wasn't represented in the google-services.json file I downloaded. Open your google-services.json file and make sure there is a client_info object that has a package name that corresponds to your manifests package name.
Make sure the package name in your project manifest is exactly the same in google-services.json file
thanks.
For me, I had to check the google-services.json
file and make sure "package_name"
was correctly set to the package name of my android app. The auto generated services file had .backend
appended to it in my case.