2013-08-22 60 views
0

我得到這個錯誤:的NoClassDefFoundError與Google雲端通訊

java.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging 

在我IntentService從GCM廣播接收器,稱爲創造了這個指南如下: http://developer.android.com/google/gcm/client.html

我包括播放服務的依賴搖籃。

dependencies { 
    .... 
    compile 'com.google.android.gms:play-services:3.1.+' 
} 

什麼可能導致此問題?

編輯: 我使用的是真正的手機,Android的豆形軟糖4.1

回答

2

我一直在使用這些步驟解決:

  • 同步與搖籃
  • 重建項目
  • 生成APK和再次運行。
相關問題