我正试图让gcm在我的应用程序中工作。 我的工作是将应用程序从Eclipse构建更新到Android Studio构建。 在Android Studio构建中,它不再适用于插入gcm.jar,因此我正在遵循以下文档: https : //developers.google.com/cloud-messaging/android/client让我的应用程序以gcm运行。
为了做到这一点,我需要创建一个json配置文件。 为了制作这个文件,我必须给谷歌的配置文件创建者我的appId和我的packageName。
我已将它们输入到Google的表单中,并在输入时收到错误消息:“处理请求时出现未知错误。请重试。”
此错误消息非常模糊。
我已经在Internet Explorer中尝试了同样的结果。
我的appId和packageName可能有错误吗? 我如何知道? 有可能这项服务刚刚停止,我应该等到明天,但我想先耗尽我所有的选择。
我的appId和packageName都是“myCompanyName.android”
I am trying to get gcm working in my app. It is my job to update the app from the Eclipse build to the Android studio build. In the Android Studio build it no longer works to just plug in gcm.jar, so I am following this documentation: https://developers.google.com/cloud-messaging/android/client to get my app running with gcm.
In order to do that I need to create a json configuration file. To make that file I must give google's configuration file creator my appId and my packageName.
I have entered them into google's form, and upon entry I get the error: "There was an unknown error while processing the request. Try again."
This error message is very vague.
I have attempted again in internet explorer with the same result.
Is there possibly an error with my appId and packageName? How would I find out? It is possible that this service is just down and I should wait until tomorrow, but I want to exhaust all my options first.
My appId and packageName are both "myCompanyName.android"
最满意答案
刚刚发现,在开发人员控制台项目中为应用程序创建客户端ID会删除此错误,并允许创建配置文件...
Developer console projects APIs & auth Credentials Create new client ID: Installed application Android Enter package name Enter SHA1 for RELEASE OR DEBUG (which ever one you want it to work with) Make deep linking choice Create然后回到页面,它的工作原理。 可能是控制台中的其他东西,你需要做但idk,因为我已经设置了其他东西。
Just found out a moment ago that creating a client ID for the app in developer console project removes this error and allows the config file to be created...
Developer console projects APIs & auth Credentials Create new client ID: Installed application Android Enter package name Enter SHA1 for RELEASE OR DEBUG (which ever one you want it to work with) Make deep linking choice CreateThen went back to the page and it works. Could be other stuff in the console that you need to do but idk as I already have other stuff set up.
错误在Android上为实现GCM客户端创建json项目配置文件(Error Creating json project configuration file for Implementing GCM Client on Android)我正试图让gcm在我的应用程序中工作。 我的工作是将应用程序从Eclipse构建更新到Android Studio构建。 在Android Studio构建中,它不再适用于插入gcm.jar,因此我正在遵循以下文档: https : //developers.google.com/cloud-messaging/android/client让我的应用程序以gcm运行。
为了做到这一点,我需要创建一个json配置文件。 为了制作这个文件,我必须给谷歌的配置文件创建者我的appId和我的packageName。
我已将它们输入到Google的表单中,并在输入时收到错误消息:“处理请求时出现未知错误。请重试。”
此错误消息非常模糊。
我已经在Internet Explorer中尝试了同样的结果。
我的appId和packageName可能有错误吗? 我如何知道? 有可能这项服务刚刚停止,我应该等到明天,但我想先耗尽我所有的选择。
我的appId和packageName都是“myCompanyName.android”
I am trying to get gcm working in my app. It is my job to update the app from the Eclipse build to the Android studio build. In the Android Studio build it no longer works to just plug in gcm.jar, so I am following this documentation: https://developers.google.com/cloud-messaging/android/client to get my app running with gcm.
In order to do that I need to create a json configuration file. To make that file I must give google's configuration file creator my appId and my packageName.
I have entered them into google's form, and upon entry I get the error: "There was an unknown error while processing the request. Try again."
This error message is very vague.
I have attempted again in internet explorer with the same result.
Is there possibly an error with my appId and packageName? How would I find out? It is possible that this service is just down and I should wait until tomorrow, but I want to exhaust all my options first.
My appId and packageName are both "myCompanyName.android"
最满意答案
刚刚发现,在开发人员控制台项目中为应用程序创建客户端ID会删除此错误,并允许创建配置文件...
Developer console projects APIs & auth Credentials Create new client ID: Installed application Android Enter package name Enter SHA1 for RELEASE OR DEBUG (which ever one you want it to work with) Make deep linking choice Create然后回到页面,它的工作原理。 可能是控制台中的其他东西,你需要做但idk,因为我已经设置了其他东西。
Just found out a moment ago that creating a client ID for the app in developer console project removes this error and allows the config file to be created...
Developer console projects APIs & auth Credentials Create new client ID: Installed application Android Enter package name Enter SHA1 for RELEASE OR DEBUG (which ever one you want it to work with) Make deep linking choice CreateThen went back to the page and it works. Could be other stuff in the console that you need to do but idk as I already have other stuff set up.
发布评论