嗨,我在安卓中尝试了诺基亚通知消息,但我遇到以下错误
.LOG:
04-05 13:43:07.801: E/AndroidRuntime(1042): FATAL EXCEPTION: main
04-05 13:43:07.801: E/AndroidRuntime(1042): java.lang.NoClassDefFoundError: com.nokia.push.PushRegistrar
04-05 13:43:07.801: E/AndroidRuntime(1042): at com.example.nokiapush.NotificationsManager.<init>(NotificationsManager.java:68)
04-05 13:43:07.801: E/AndroidRuntime(1042): at com.example.nokiapush.NotificationsManager.getInstance(NotificationsManager.java:46)
04-05 13:43:07.801: E/AndroidRuntime(1042): at com.example.nokiapush.MainActivity.onCreate(MainActivity.java:65)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.Activity.performCreate(Activity.java:5180)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2031)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2092)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.ActivityThread.access$600(ActivityThread.java:133)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1203)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.os.Looper.loop(Looper.java:137)
04-05 13:43:07.801: E/AndroidRuntime(1042): at android.app.ActivityThread.main(ActivityThread.java:4807)
04-05 13:43:07.801: E/AndroidRuntime(1042): at java.lang.reflect.Method.invokeNative(Native Method)
04-05 13:43:07.801: E/AndroidRuntime(1042): at java.lang.reflect.Method.invoke(Method.java:511)
04-05 13:43:07.801: E/AndroidRuntime(1042): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
04-05 13:43:07.801: E/AndroidRuntime(1042): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:559)
04-05 13:43:07.801: E/AndroidRuntime(1042): at dalvik.system.NativeStart.main(Native Method)
确保您也在导出该库。如果不导出,则库仅在构建时可用。从 eclipse 中选择"构建路径属性"(如果使用该属性),然后从"订购和导出"选项卡中选择要导出的推送 jar。如果它在那里不可见,请检查您是否正在导出私有库和依赖项。
此外,请确保您在具有诺基亚 X 映像的 Android 模拟器中运行您的应用(构建目标是诺基亚 X)