ARC Welder:“设备没有com.google.android.gsf软件包"尽管有"usePlayServices":["gcm"] [英] ARC Welder: "Device does not have package com.google.android.gsf" despite "usePlayServices": ["gcm"]

查看:115
本文介绍了ARC Welder:“设备没有com.google.android.gsf软件包"尽管有"usePlayServices":["gcm"]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ARC焊机中运行的apk中,我得到:

In my apk running in ARC welder I get:

java.lang.UnsupportedOperationException:设备没有包 com.google.android.gsf com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98)

java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98)

尽管在其他元数据"中有以下内容,我还是得到了这一点:

I get this despite having the following in Additional Metadata:

{ "usePlayServices": ["gcm"], "crx_key": ... } .

我需要做什么才能使它正常工作?

What do I need to do to get this working?

推荐答案

我遇到了这个问题,但是看来解决方案与GCM无关.我的应用虽然正在使用RabbitMQ Java库.

I had this problem, but it appears the solution had nothing to do with GCM. My app was using the RabbitMQ java library though.

解决方案是使用Google API代替Android SDK Platfor作为默认SDK.通过转到项目设置->项目->选择新建[在Project SDK下]->选择您的Android SDK主目录->选择您喜欢的Google API来选择它.

The solution was to use Google APIs instead of Android SDK Platfor as the default SDK . This is selected by going to Project Settings -> Project -> Select New [under Project SDK] -> Chose Your Android SDK Home Directory -> Chose the Your Favourite Google API.

注意:如果您下载了这些API,这些API通常位于创建新的Android SDK"对话框的构建目标"下拉列表的下半部分.

Note: the APIs, in case you downloaded them, are normally on the lower half of the Build Target Drop down list in the Create New Android SDK dialog box.

这篇关于ARC Welder:“设备没有com.google.android.gsf软件包"尽管有"usePlayServices":["gcm"]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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