3
不能使用gcm.jar中的GCMRegisterar,我已经添加到构建路径,但仍然在logcat中获取此消息。不能使用GCMRegistrar?
07-12 14:29:08.825: I/dalvikvm(23536): Could not find method com.google.android.gcm.GCMRegistrar.getRegistrationId, referenced from method com.example.registration_id.MainActivity.onCreate
如何将jar添加到构建路径? – 2012-07-12 10:00:55
@darkcrow我将C盘中android文件夹中的gcm.jar文件复制到我的eclipse项目中,然后右键单击它并选择构建路径>添加构建路径。它被添加到我的项目的package explorer中的引用库中。 – Rishikesh 2012-07-12 12:01:44
我不小心,如果它需要,但你需要创建一个/ libs文件夹,并将gcm.jar复制到,然后构建它。 – 2012-07-12 12:35:56