我是新來的所有這些瘋狂的Android/Java編程的東西。我有一個應用程序(以某種方式),我設法弄清楚如何添加應用內結算項目。我很確定這個錯誤與應用內結算有關,但我無法在我的任何設備上重現問題。我收到了我的第一個異常。現在我該怎麼辦?
NullPointerException
in ComponentName.<init>()
java.lang.RuntimeException: Unable to destroy activity {ca.ajwest.BeerConverter/ca.ajwest.BeerConverter.BeerConverter}: java.lang.NullPointerException
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3035)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3100)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3216)
at android.app.ActivityThread.access$1600(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1037)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4196)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.content.ComponentName.<init>(ComponentName.java:75)
at android.content.Intent.<init>(Intent.java:2893)
at ca.ajwest.BeerConverter.BillingHelper.stopService(BillingHelper.java:270)
at ca.ajwest.BeerConverter.BeerConverter.onDestroy(BeerConverter.java:615)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3017)
... 12 more
請問有人請指導我一些資源,我可以瞭解更多關於這個輸出或什麼?有沒有人有類似的經歷?
Here's the source有沒有什麼幫助的。
感謝您的幫助。