GCM:java.lang.NoClassDefFoundError的:com.google.android.gcm.GCMRegistrar [英] GCM: java.lang.NoClassDefFoundError: com.google.android.gcm.GCMRegistrar

查看:157
本文介绍了GCM:java.lang.NoClassDefFoundError的:com.google.android.gcm.GCMRegistrar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮忙,它的一切,我对这个问题的工作和所使用的网络上找到所有可能的解决方案的日子。

Please help, it's all the days that I work on this problem and used all possible solutions found on the web.

要求:
使用朱诺日食,ADT 20
我有业务GCM的作品,我没有使用Android开发示范项目有点复杂
(http://developer.android.com/guide/google/gcm/demo.html)
我意识到,我的应用程序是Crask每次调用类GCMRegistrar。

Requirements: Use juno eclipse, ADT 20 I have works with business GCM, I did a project a bit more complicated using the demo of Android developers (http://developer.android.com/guide/google/gcm/demo.html) And I realized that my application was in Crask each call class GCMRegistrar.

所以我创建了一个最小的锻炼,如果我解开一切都将正常工作。

So I created a minimal exercise that will work if I unlock everything.

import com.google.android.gcm.GCMRegistrar;

    public class Manda extends Activity {

        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_manda);

        crash --->  GCMRegistrar.checkDevice(this);

            // while developing the app, then uncomment it when it's ready.

            GCMRegistrar.checkManifest(this);

        }

我附上分钟锻炼的屏幕截图
我加入了gcm.jar库,我做了所有我找到了。

I attach the screenshot of the min exercise I added the gcm.jar library and I did all I found.

我比我不能发表IMG一个新的用户,但我把bropbox的公开链接
https://www.dropbox.com/s/dyi0y4sppz4rcq3/img%20GCM %20problem.zip

I am a new user than I can not post img but I put a public link of bropbox https://www.dropbox.com/s/dyi0y4sppz4rcq3/img%20GCM%20problem.zip

推荐答案

但问题是我没有模拟器谷歌蜜蜂(谷歌公司)。
如果你正在使用Android模拟器,你必须创建与谷歌蜜蜂(谷歌公司)模拟器。

The problem was my emulator without Google Apis (Google Inc). If you are using android emulator you have to create emulator with Google Apis (Google Inc).

这篇关于GCM:java.lang.NoClassDefFoundError的:com.google.android.gcm.GCMRegistrar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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