GoogleAuthException: Unknown when authenticating with Cloud Endpoints

后端 未结 2 1668
旧时难觅i
旧时难觅i 2021-02-09 04:33

I\'m trying to add authentication to my Cloud Endpoints, but I can\'t get it to work. I\'m using this blog as a guideline: http://devthots.blogspot.nl/2012/07/building-awesome-a

2条回答
  •  悲&欢浪女
    2021-02-09 05:14

    Be careful when you generate the Android Client ID. When you enter the package name, use the application ID written in app/build.gradle. It may be different of the package for your sources classes.

    Explanation:

    At the project creation, the package name you enter is used by Android as Application ID and used to generate packages for your source classes. During the project development, you may change the package name for your source classes. But be careful, Android Studio doesn't change automatically your application ID !

提交回复
热议问题