错误创建JSON项目配置文件在Android上实现GCM客户端 [英] Error Creating json project configuration file for Implementing GCM Client on Android

查看:160
本文介绍了错误创建JSON项目配置文件在Android上实现GCM客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让GCM在我的应用程序工作。
这是我的工作,以更新从Eclipse应用程序构建到Android工作室打造。
在Android工作室打造它不再致力于只是gcm.jar堵塞,所以
我下面这个文档: https://developers.google.com/cloud-messaging/android /客户,以获得我的应用程序运行GCM

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.

在为了做到这一点,我需要创建一个JSON配置文件。
为了使这个文件我必须给谷歌的配置文件创建我的appid和我的packageName。

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.

我在Internet Explorer中再次尝试与相同的结果。

I have attempted again in internet explorer with the same result.

是否有可能与我的appid和的packageName错误?我怎么会知道的?
这可能是这个服务是刚下来,我要等到明天,但我想先用尽所有我的选择。

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.

我的appid和的packageName都是myCompanyName.android

My appId and packageName are both "myCompanyName.android"

推荐答案

刚刚发现刚才那个创造了在开发者控制台项目应用客户端ID删除这个错误,并允许配置文件被创建...

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
  Create

然后又回到了页面和它的作品。可能是其他的东西在你需要做的,但IDK的,因为我已经有其他的东西设置控制台。

Then 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.

这篇关于错误创建JSON项目配置文件在Android上实现GCM客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆