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.